コード例 #1
0
ファイル: PublishStatus.cs プロジェクト: Shiiina/Ragnarok
        /// <summary>
        /// コンストラクタ
        /// </summary>
        private PublishStatus(long liveId, XmlNode node)
            : base(node, "getpublishstatus", NicoString.LiveIdString(liveId))
        {
            this.Stream = new StreamType();
            this.User   = new UserType();
            this.RTMP   = new RTMPType();

            foreach (var childObj in RootNode.ChildNodes)
            {
                var child = (XmlNode)childObj;

                switch (child.Name)
                {
                case "stream":
                    this.Stream = new StreamType(child);
                    break;

                case "user":
                    this.User = new UserType(child);
                    break;

                case "rtmp":
                    this.RTMP = new RTMPType(child);
                    break;
                }
            }
        }
コード例 #2
0
ファイル: PublishStatus.cs プロジェクト: JuroGandalf/Ragnarok
        /// <summary>
        /// コンストラクタ
        /// </summary>
        private PublishStatus(long liveId, XmlNode node)
            : base(node, "getpublishstatus", LiveUtil.LiveIdString(liveId))
        {
            this.Stream = new StreamType();
            this.User = new UserType();
            this.RTMP = new RTMPType();

            foreach (var childObj in RootNode.ChildNodes)
            {
                var child = (XmlNode)childObj;

                switch (child.Name)
                {
                    case "stream":
                        this.Stream = new StreamType(child);
                        break;
                    case "user":
                        this.User = new UserType(child);
                        break;
                    case "rtmp":
                        this.RTMP = new RTMPType(child);
                        break;
                }
            }
        }