Inheritance: CfActionRecord
 internal static TextRecord ToTextRecord(CfTextRecord source)
 {
     if (source == null)
     {
         return null;
     }
     var result = EnumeratedMapper.ScreamingSnakeCase(source.Result.ToString());
     var questionResponse = ActionRecordQuestionResponseMapper.ToActionRecordQuestionResponse(source.QuestionResponse);
     return new TextRecord(result, source.FinishTime, source.BilledAmount, questionResponse, source.Id, source.Message);
 }
 internal static TextRecord[] ToTextRecord(CfTextRecord[] source)
 {
     return source == null ? null : source.Select(ToTextRecord).ToArray();
 }
Ejemplo n.º 3
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;
 }