Пример #1
0
 internal void UpdateFromProxy(Proxy_Role proxy)
 {
     uuid             = proxy.uuid == null ? null : proxy.uuid;
     name_label       = proxy.name_label == null ? null : proxy.name_label;
     name_description = proxy.name_description == null ? null : proxy.name_description;
     subroles         = proxy.subroles == null ? null : XenRef <Role> .Create(proxy.subroles);
 }
Пример #2
0
        public Proxy_Role ToProxy()
        {
            Proxy_Role result_ = new Proxy_Role();

            result_.uuid             = uuid ?? "";
            result_.name_label       = name_label ?? "";
            result_.name_description = name_description ?? "";
            result_.subroles         = subroles == null ? new string[] {} : Helper.RefListToStringArray(subroles);
            return(result_);
        }
Пример #3
0
        public Proxy_Role ToProxy()
        {
            Proxy_Role result_ = new Proxy_Role();

            result_.uuid             = (uuid != null) ? uuid : "";
            result_.name_label       = (name_label != null) ? name_label : "";
            result_.name_description = (name_description != null) ? name_description : "";
            result_.subroles         = (subroles != null) ? Helper.RefListToStringArray(subroles) : new string[] {};
            return(result_);
        }
Пример #4
0
 /// <summary>
 /// Creates a new Role from a Proxy_Role.
 /// </summary>
 /// <param name="proxy"></param>
 public Role(Proxy_Role proxy)
 {
     this.UpdateFromProxy(proxy);
 }
Пример #5
0
 /// <summary>
 /// Creates a new Role from a Proxy_Role.
 /// </summary>
 /// <param name="proxy"></param>
 public Role(Proxy_Role proxy)
 {
     UpdateFrom(proxy);
 }