public DnspodApi(string token = null) { if (string.IsNullOrWhiteSpace(token)) { token = System.Configuration.ConfigurationManager.AppSettings["Dnspod.Token"]; } this.token = token; Domain = new DomainApi(this); Record = new RecordApi(this); }
private void SetupApis() { Error = new ErrorApi { Client = this }; Account = new AccountApi { Client = this }; Application = new ApplicationApi { Client = this }; AvailableNumber = new AvailableNumberApi { Client = this }; Bridge = new BridgeApi { Client = this }; Domain = new DomainApi { Client = this }; Call = new CallApi { Client = this }; Conference = new ConferenceApi { Client = this }; Message = new MessageApi { Client = this }; NumberInfo = new NumberInfoApi { Client = this }; PhoneNumber = new PhoneNumberApi { Client = this }; Recording = new RecordingApi { Client = this }; Transcription = new TranscriptionApi { Client = this }; Media = new MediaApi { Client = this }; Endpoint = new EndpointApi { Client = this }; V2 = new ApiV2 { Message = new Bandwidth.Net.ApiV2.MessageApi { Client = this } }; }
private void LoadDomain() { List <DomainContractV2> allDomains = new DomainApi(LocalData.baseHttp).ApiDomainV2Get(); List <string> allDisplayNames = new List <string>(); foreach (var item in allDomains) { DisplayDomain displayDomain = new DisplayDomain(item); DomainDic.Add(displayDomain.DisplayName, displayDomain); allDisplayNames.Add(displayDomain.DisplayName); } _domains = new BindableCollection <string>(allDisplayNames); }
public void Init() { instance = new DomainApi(); }
protected BaseController() { Api = DomainApiBootstrapper.ResolveDomainApi(); }