Beispiel #1
0
            internal UserType(XmlNode node)
                : this()
            {
                foreach (var childObj in node.ChildNodes)
                {
                    var child = (XmlNode)childObj;
                    var text  = child.InnerText;

                    switch (child.Name)
                    {
                    case "room_label":
                        this.RoomLabel = text;
                        break;

                    case "room_seetno":
                        this.RoomSeetNo = StrUtil.ToInt(text, 0);
                        break;

                    case "userAge":
                        this.UserAge = StrUtil.ToInt(text, 0);
                        break;

                    case "userSex":
                        this.UserGender = StrUtil.ToGender(text);
                        break;

                    case "userPrefecture":
                        this.UserPrefecture = text;
                        break;

                    case "nickname":
                        this.NickName = text;
                        break;

                    case "is_premium":
                        this.IsPremium = StrUtil.ToBool(text, false);
                        break;

                    case "user_id":
                        this.UserId = int.Parse(text);
                        break;

                    case "hkey":
                        this.HKey = text;
                        break;

                    case "is_join":
                        this.IsJoin = StrUtil.ToBool(text, false);
                        break;

                    case "immu_comment":
                        this.ImmuComment = text;
                        break;

                    case "can_broadcast":
                        this.CanBroadcast = text;
                        break;

                    case "can_forcelogin":
                        this.CanForceLogin = text;
                        break;

                    case "twitter_info":
                        this.TwitterInfo = new TwitterInfoType(child);
                        break;
                    }
                }
            }
Beispiel #2
0
            internal UserType(XmlNode node)
                : this()
            {
                foreach (var childObj in node.ChildNodes)
                {
                    var child = (XmlNode)childObj;
                    var text = child.InnerText;

                    switch (child.Name)
                    {
                        case "room_label":
                            this.RoomLabel = text;
                            break;
                        case "room_seetno":
                            this.RoomSeetNo = StrUtil.ToInt(text, 0);
                            break;
                        case "userAge":
                            this.UserAge = StrUtil.ToInt(text, 0);
                            break;
                        case "userSex":
                            this.UserGender = StrUtil.ToGender(text);
                            break;
                        case "userPrefecture":
                            this.UserPrefecture = text;
                            break;
                        case "nickname":
                            this.NickName = text;
                            break;
                        case "is_premium":
                            this.IsPremium = StrUtil.ToBool(text, false);
                            break;
                        case "user_id":
                            this.UserId = int.Parse(text);
                            break;
                        case "hkey":
                            this.HKey = text;
                            break;
                        case "is_join":
                            this.IsJoin = StrUtil.ToBool(text, false);
                            break;
                        case "immu_comment":
                            this.ImmuComment = text;
                            break;
                        case "can_broadcast":
                            this.CanBroadcast = text;
                            break;
                        case "can_forcelogin":
                            this.CanForceLogin = text;
                            break;
                        case "twitter_info":
                            this.TwitterInfo = new TwitterInfoType(child);
                            break;
                    }
                }
            }
Beispiel #3
0
 internal UserType()
 {
     this.TwitterInfo = new TwitterInfoType();
 }
Beispiel #4
0
 internal UserType()
 {
     this.TwitterInfo = new TwitterInfoType();
 }