コード例 #1
0
 public void Setup()
 {
     _serializer = new CustomSerializer();
     _broadcast = new Broadcast(1, "Broadcast Name", BroadcastStatus.ARCHIVED,
         new DateTime(2014, 1, 1, 3, 0, 0), BroadcastType.TEXT,
         new TextBroadcastConfig(new CfTextBroadcastConfig(2, new DateTime(2014, 1, 1, 3, 0, 0),
             "111", null, new CfBroadcastConfigRetryConfig(1, 1, new [] {CfResult.Busy}, new []{CfRetryPhoneType.HomePhone}), "message", new CfBigMessageStrategy())))
     {
         idSpecified = true,
         LastModifiedSpecified = true
     };
 }
コード例 #2
0
 internal HttpClient(string baseUrl, string user, string password)
 {
     _baseUrl = new Uri(baseUrl);
     _credentials = new CredentialCache { { _baseUrl, "Basic", new NetworkCredential(user, password) } };
     _serializer = new CustomSerializer();
 }