| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Threading.Tasks;
- using System.Xml.Serialization;
- namespace ApiProcessToken.Models.edu
- {
- [XmlRoot(ElementName = "document", Namespace = "")]
- public class DocumentDto
- {
- [XmlElement(DataType = "string", ElementName = "charge")]
- public string charge { get; set; }
- [XmlElement(DataType = "string", ElementName = "reason")]
- public string reason { get; set; }
- [XmlElement(DataType = "string", ElementName = "hangup")]
- public string hangup { get; set; }
- [XmlElement(ElementName = "recording_url")]
- public string recording_url { get; set; }
- }
- //[XmlRoot(ElementName = "document", Namespace = "")]
- //public class DocumentDto
- //{
- // [XmlElement(DataType = "string", ElementName = "username")]
- // public string username { get; set; }
- // [XmlElement(DataType = "string", ElementName = "password")]
- // public string password { get; set; }
- // [XmlElement(DataType = "string", ElementName = "serviceid")]
- // public string serviceid { get; set; }
-
- // [XmlElement(DataType = "string", ElementName = "msisdn")]
- // public string msisdn { get; set; }
- // [XmlElement(DataType = "string", ElementName = "chargetime")]
- // public string chargetime { get; set; }
- // [XmlElement(DataType = "string", ElementName = "params")]
- // public string params1 { get; set; }
- // [XmlElement(DataType = "string", ElementName = "mode")]
- // public string mode { get; set; }
- // [XmlElement(DataType = "string", ElementName = "amount")]
- // public string amount { get; set; }
- // [XmlElement(DataType = "string", ElementName = "command")]
- // public string command { get; set; }
- // [XmlElement(DataType = "string", ElementName = "transaction")]
- // public string transaction { get; set; }
- //}
- [XmlRoot(ElementName = "subRequest", Namespace = "http://contentws/xsd")]
- public class SubRequest
- {
- [XmlElement(ElementName = "username", Namespace = "http://contentws/xsd")]
- public string Username { get; set; }
- [XmlElement(ElementName = "password", Namespace = "http://contentws/xsd")]
- public string Password { get; set; }
- [XmlElement(ElementName = "serviceid", Namespace = "http://contentws/xsd")]
- public string Serviceid { get; set; }
- [XmlElement(ElementName = "msisdn", Namespace = "http://contentws/xsd")]
- public string Msisdn { get; set; }
- [XmlElement(ElementName = "chargetime", Namespace = "http://contentws/xsd")]
- public string Chargetime { get; set; }
- [XmlElement(ElementName = "params", Namespace = "http://contentws/xsd")]
- public string Params { get; set; }
- [XmlElement(ElementName = "mode", Namespace = "http://contentws/xsd")]
- public string Mode { get; set; }
- [XmlElement(ElementName = "amount", Namespace = "http://contentws/xsd")]
- public string Amount { get; set; }
- [XmlElement(ElementName = "command", Namespace = "http://contentws/xsd")]
- public string Command { get; set; }
- [XmlElement(ElementName = "transaction", Namespace = "http://contentws/xsd")]
- public string Transaction { get; set; }
- [XmlAttribute(AttributeName = "xmlns")]
- public string Xmlns { get; set; }
- }
- [XmlRoot(ElementName = "Body", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
- public class Body
- {
- [XmlElement(ElementName = "subRequest", Namespace = "http://contentws/xsd")]
- public SubRequest SubRequest { get; set; }
- }
- [XmlRoot(ElementName = "Envelope", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
- public class Envelope
- {
- [XmlElement(ElementName = "Body", Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
- public Body Body { get; set; }
- [XmlAttribute(AttributeName = "S", Namespace = "http://www.w3.org/2000/xmlns/")]
- public string S { get; set; }
- }
- }
|