示例#1
0
 public UserAssetsListItemGetRequestBuilder(string assetId, UserAssetsListType listType, UserAssetsListItemType itemType)
     : this()
 {
     this.AssetId  = assetId;
     this.ListType = listType;
     this.ItemType = itemType;
 }
示例#2
0
        public UserAssetsListItem(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "id":
                    this._Id = propertyNode.InnerText;
                    continue;

                case "orderIndex":
                    this._OrderIndex = ParseInt(propertyNode.InnerText);
                    continue;

                case "type":
                    this._Type = (UserAssetsListItemType)StringEnum.Parse(typeof(UserAssetsListItemType), propertyNode.InnerText);
                    continue;

                case "userId":
                    this._UserId = propertyNode.InnerText;
                    continue;

                case "listType":
                    this._ListType = (UserAssetsListType)StringEnum.Parse(typeof(UserAssetsListType), propertyNode.InnerText);
                    continue;
                }
            }
        }
示例#3
0
 public static UserAssetsListItemGetRequestBuilder Get(string assetId, UserAssetsListType listType, UserAssetsListItemType itemType)
 {
     return(new UserAssetsListItemGetRequestBuilder(assetId, listType, itemType));
 }