aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Synchronization/SynchronizationState.cs
blob: 5797f449f703a9c0eb2a25ca003bc35be968fcbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tango.PPC.Common.Synchronization
{
    public enum SynchronizationState
    {
        [Description("Pending...")]
        Pending,
        [Description("Synchronizing...")]
        Synchronizing,
        [Description("Failed")]
        Failed,
        [Description("Completed")]
        Completed,
        [Description("Disabled")]
        Disabled
    }
}
pan class="n">ITransportEncoder { /// <summary> /// Decodes the specified data. /// </summary> /// <param name="data">The data.</param> /// <returns></returns> public ITangoMessage Decode(byte[] data) { return MessageFactory.ParseTangoMessageAgnostic(data); } /// <summary> /// Decodes only the container part of the message. /// </summary> /// <param name="data">The data.</param> /// <returns></returns> public MessageContainer DecodeContainer(byte[] data) { return MessageFactory.ParseContainer(data); } /// <summary> /// Encodes the specified tango message. /// </summary> /// <param name="tangoMessage">The tango message.</param> /// <returns></returns> public byte[] Encode(ITangoMessage tangoMessage) { return tangoMessage.ToBytes(); } /// <summary> /// Returns a <see cref="System.String" /> that represents this instance. /// </summary> /// <returns> /// A <see cref="System.String" /> that represents this instance. /// </returns> public override string ToString() { return "Protobuf Encoder"; } } }