public InboxMessage(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "id": this._Id = propertyNode.InnerText; continue; case "message": this._Message = propertyNode.InnerText; continue; case "status": this._Status = (InboxMessageStatus)StringEnum.Parse(typeof(InboxMessageStatus), propertyNode.InnerText); continue; case "type": this._Type = (InboxMessageType)StringEnum.Parse(typeof(InboxMessageType), propertyNode.InnerText); continue; case "createdAt": this._CreatedAt = ParseLong(propertyNode.InnerText); continue; case "url": this._Url = propertyNode.InnerText; continue; } } }
public InboxMessagesResource(Guid id, InboxMessageStatus status) : this() { ResourcePath += string.Format("/{0}?action={1}", id, status.ToString().ToLowerInvariant()); }
public static InboxMessageUpdateStatusRequestBuilder UpdateStatus(string id, InboxMessageStatus status) { return(new InboxMessageUpdateStatusRequestBuilder(id, status)); }
public InboxMessageUpdateStatusRequestBuilder(string id, InboxMessageStatus status) : this() { this.Id = id; this.Status = status; }