public MessageTemplate(XmlElement node) : base(node) { foreach (XmlElement propertyNode in node.ChildNodes) { switch (propertyNode.Name) { case "message": this._Message = propertyNode.InnerText; continue; case "dateFormat": this._DateFormat = propertyNode.InnerText; continue; case "assetType": this._AssetType = (OTTAssetType)ParseEnum(typeof(OTTAssetType), propertyNode.InnerText); continue; case "sound": this._Sound = propertyNode.InnerText; continue; case "action": this._Action = propertyNode.InnerText; continue; case "url": this._Url = propertyNode.InnerText; continue; } } }
public MessageTemplateGetRequestBuilder(OTTAssetType assetType) : this() { this.AssetType = assetType; }
public static MessageTemplateUpdateRequestBuilder Update(OTTAssetType assetType, MessageTemplate template) { return(new MessageTemplateUpdateRequestBuilder(assetType, template)); }
public static MessageTemplateGetRequestBuilder Get(OTTAssetType assetType) { return(new MessageTemplateGetRequestBuilder(assetType)); }
public MessageTemplateUpdateRequestBuilder(OTTAssetType assetType, MessageTemplate template) : this() { this.AssetType = assetType; this.Template = template; }