Exemplo n.º 1
0
 public CfText(string fromNumber, CfToNumber toNumber, CfActionState state, long batchId, long broadcastId, long contactId,
               bool inbound, DateTime created, DateTime modified, CfResult finalResult, CfLabel[] label, long id, string message, CfTextRecord[] textRecord)
     : base(fromNumber, toNumber, state, batchId, broadcastId, contactId, inbound, created, modified, finalResult, label, id)
 {
     Message    = message;
     TextRecord = textRecord;
 }
Exemplo n.º 2
0
 public CfSendCall(string requestId, CfBroadcastType type, string broadcastName, CfToNumber[] toNumber,
     bool scrubBroadcastDuplicates, CfBroadcastConfig item)
 {
     RequestId = requestId;
     Type = type;
     BroadcastName = broadcastName;
     ToNumber = toNumber;
     ScrubBroadcastDuplicates = scrubBroadcastDuplicates;
     Item = item;
 }
 public CfSendText(string requestId, CfBroadcastType type, string broadcastName, CfToNumber[] toNumber, bool scrubBroadcastDuplicates,
     CfTextBroadcastConfig textBroadcastConfig, long? broadcastId, Boolean useDefaultBroadcast)
 {
     RequestId = requestId;
     Type = type;
     BroadcastName = broadcastName;
     ToNumber = toNumber;
     ScrubBroadcastDuplicates = scrubBroadcastDuplicates;
     TextBroadcastConfig = textBroadcastConfig;
     BroadcastId = broadcastId;
     UseDefaultBroadcast = useDefaultBroadcast;
 }
Exemplo n.º 4
0
 public CfAction(string fromNumber, CfToNumber toNumber, CfActionState state, long?batchId, long?broadcastId, long contactId,
                 bool inbound, DateTime created, DateTime modified, CfResult finalResult, CfLabel[] label, long id)
 {
     FromNumber  = fromNumber;
     ToNumber    = toNumber;
     State       = state;
     BatchId     = batchId;
     BroadcastId = broadcastId;
     ContactId   = contactId;
     Inbound     = inbound;
     Created     = created;
     Modified    = modified;
     FinalResult = finalResult;
     Label       = label;
     Id          = id;
 }
        public void FixtureSetup()
        {
            Client = new SoapCallClient(MockClient.User(), MockClient.Password());

            var localTimeZoneRestriction = new CfLocalTimeZoneRestriction(DateTime.Now, DateTime.Now);
            CfResult[] result = { CfResult.Received };
            CfRetryPhoneType[] phoneTypes = { CfRetryPhoneType.FirstNumber };
            var broadcastConfigRestryConfig = new CfBroadcastConfigRetryConfig(1000, 2, result, phoneTypes);
            var ivrBroadcastConfig = new CfIvrBroadcastConfig(1, DateTime.Now, "14252163710", localTimeZoneRestriction, broadcastConfigRestryConfig,
                "<dialplan><play type=\"tts\">Congratulations! You have successfully configured a CallFire I V R.</play></dialplan>");

            var toNumber = new CfToNumber[1];
            toNumber[0] = new CfToNumber("Data", null, "14252163710");

            SendCall = new CfSendCall(String.Empty, CfBroadcastType.Ivr, "broadcastSoap", toNumber, false, ivrBroadcastConfig);

            ActionQuery = new CfActionQuery(100, 0, 1836940001, 1092170001, new[] { CfActionState.Finished }, new[] { CfResult.La },
                false, new DateTime(2014, 1, 1), new DateTime(2014, 12, 1), "12132609784", "14252163710", string.Empty);

            QuerySoundMeta = new CfQuery();
        }
        public void FixtureSetup()
        {
            CallfireClient = new CallfireClient(MockClient.User(), MockClient.Password(), CallfireClients.Soap);
            Client = CallfireClient.Text;

            var localTimeZoneRestriction = new CfLocalTimeZoneRestriction(DateTime.Now, DateTime.Now);
            CfResult[] result = { CfResult.Received };
            CfRetryPhoneType[] phoneTypes = { CfRetryPhoneType.FirstNumber };
            var broadcastConfigRestryConfig = new CfBroadcastConfigRetryConfig(1000, 2, result, phoneTypes);
            var textBroadcastConfig = new CfTextBroadcastConfig(1, DateTime.Now, "14252163710", localTimeZoneRestriction, broadcastConfigRestryConfig, "Test", CfBigMessageStrategy.DoNotSend);

            var toNumber = new CfToNumber[1];
            toNumber[0] = new CfToNumber("Data", null, "14252163710");

            SendText = new CfSendText(String.Empty, CfBroadcastType.Text, "broadcastSoap", toNumber, false, textBroadcastConfig, 1875873001, true);

            CfActionQuery = new CfActionQuery(100, 0, 1838228001, 1092170001, new[] { CfActionState.Ready }, null, false, new DateTime(2014, 1, 1),
                new DateTime(2014, 12, 1), null, null, null);

            QueryAutoReplies = new CfQueryAutoReplies(100, 0, null);
        }
Exemplo n.º 7
0
 public CfCall(string fromNumber, CfToNumber toNumber, CfActionState state, long batchId, long broadcastId, long contactId, bool inbound,
     DateTime created, DateTime modified, CfResult finalResult, CfLabel[] label, long id, CfCallRecord[] callRecord)
     : base(fromNumber, toNumber, state, batchId, broadcastId, contactId, inbound, created, modified, finalResult, label, id)
 {
     CallRecord = callRecord;
 }
Exemplo n.º 8
0
 public CfAction(string fromNumber, CfToNumber toNumber, CfActionState state, long? batchId, long? broadcastId, long contactId,
     bool inbound, DateTime created, DateTime modified, CfResult finalResult, CfLabel[] label, long id)
 {
     FromNumber = fromNumber;
     ToNumber = toNumber;
     State = state;
     BatchId = batchId;
     BroadcastId = broadcastId;
     ContactId = contactId;
     Inbound = inbound;
     Created = created;
     Modified = modified;
     FinalResult = finalResult;
     Label = label;
     Id = id;
 }
 internal static ToNumber ToToNumber(CfToNumber source)
 {
     return source == null ? null : new ToNumber(source.ClientData, source.AnyAttr, source.Value);
 }
 internal static ToNumber[] ToToNumber(CfToNumber[] source)
 {
     return source == null ? null : source.Select(ToToNumber).ToArray();
 }