/// <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; } } }
/// <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; } } }