Exemplo n.º 1
0
        public static SyncEntityPrototype DecodeSyncEntity(string body)
        {
            var prototype = new SyncEntityPrototype();

            try
            {
                prototype.DecodeFrom(body);
            }
            catch {
                throw;
            }

            return(prototype);
        }
Exemplo n.º 2
0
        public static string EncodeSyncEntity(SyncEntity src)
        {
            var syncBody = new SyncEntityPrototype(src);

            return(syncBody.Encode());
        }