Ejemplo n.º 1
0
        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;
                }
            }
        }
Ejemplo n.º 2
0
 public MessageTemplateGetRequestBuilder(OTTAssetType assetType)
     : this()
 {
     this.AssetType = assetType;
 }
Ejemplo n.º 3
0
 public static MessageTemplateUpdateRequestBuilder Update(OTTAssetType assetType, MessageTemplate template)
 {
     return(new MessageTemplateUpdateRequestBuilder(assetType, template));
 }
Ejemplo n.º 4
0
 public static MessageTemplateGetRequestBuilder Get(OTTAssetType assetType)
 {
     return(new MessageTemplateGetRequestBuilder(assetType));
 }
Ejemplo n.º 5
0
 public MessageTemplateUpdateRequestBuilder(OTTAssetType assetType, MessageTemplate template)
     : this()
 {
     this.AssetType = assetType;
     this.Template  = template;
 }