public static Dictionary <string, object> GenerateSearchMailForEachFieldRequest(QueryLogic queryLogic, FieldQueryParameters field, Operations op, string date, int index) { return(new Dictionary <string, object> { [QueryParameters.Query.GetEnumStringValue()] = new Dictionary <string, object> { [QueryParameters.QueryLogic.GetEnumStringValue()] = queryLogic.ToString().ToLower(), [QueryParameters.Query.GetEnumStringValue()] = new Dictionary <string, object> { [field.GetEnumStringValue()] = Conditions(op.ToString().ToLower(), MappingValues[field](index, date)) } } }); }
public static Dictionary <string, object> GenerateSearchMailRequest(QueryLogic queryLogic, From from, To to, Cc cc, Bcc bcc, Subject subject, Body body, Date date, Box box, Attachment attachment, Bulked bulked, string dateData) { var request = new Dictionary <string, object>(); FromMapperValue[from](request); ToMapperValue[to](request); CcMapperValue[cc](request); BccMapperValue[bcc](request); SubjectMapperValue[subject](request); BodyMapperValue[body](request); DateMapperValue[date](request, dateData); BoxMapperValue[box](request); AttachmentMapperValue[attachment](request); BulkedMapperValue[bulked](request); return(new Dictionary <string, object> { [QueryParameters.Query.GetEnumStringValue()] = new Dictionary <string, object> { [QueryParameters.QueryLogic.GetEnumStringValue()] = queryLogic.ToString().ToLower(), [QueryParameters.Query.GetEnumStringValue()] = request } }); }