Exemplo n.º 1
0
 internal void UpdateFromProxy(Proxy_Message proxy)
 {
     uuid      = proxy.uuid == null ? null : (string)proxy.uuid;
     name      = proxy.name == null ? null : (string)proxy.name;
     priority  = proxy.priority == null ? 0 : long.Parse((string)proxy.priority);
     cls       = proxy.cls == null ? (cls)0 : (cls)Helper.EnumParseDefault(typeof(cls), (string)proxy.cls);
     obj_uuid  = proxy.obj_uuid == null ? null : (string)proxy.obj_uuid;
     timestamp = proxy.timestamp;
     body      = proxy.body == null ? null : (string)proxy.body;
 }
Exemplo n.º 2
0
        public Proxy_Message ToProxy()
        {
            Proxy_Message result_ = new Proxy_Message();

            result_.uuid      = (uuid != null) ? uuid : "";
            result_.name      = (name != null) ? name : "";
            result_.priority  = priority.ToString();
            result_.cls       = cls_helper.ToString(cls);
            result_.obj_uuid  = (obj_uuid != null) ? obj_uuid : "";
            result_.timestamp = timestamp;
            result_.body      = (body != null) ? body : "";
            return(result_);
        }
Exemplo n.º 3
0
        public Proxy_Message ToProxy()
        {
            Proxy_Message result_ = new Proxy_Message();

            result_.uuid      = uuid ?? "";
            result_.name      = name ?? "";
            result_.priority  = priority.ToString();
            result_.cls       = cls_helper.ToString(cls);
            result_.obj_uuid  = obj_uuid ?? "";
            result_.timestamp = timestamp;
            result_.body      = body ?? "";
            return(result_);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Creates a new Message from a Proxy_Message.
 /// </summary>
 /// <param name="proxy"></param>
 public Message(Proxy_Message proxy)
 {
     this.UpdateFromProxy(proxy);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Creates a new Message from a Proxy_Message.
 /// </summary>
 /// <param name="proxy"></param>
 public Message(Proxy_Message proxy)
 {
     UpdateFrom(proxy);
 }