/// <summary>Gets map of fields and values.</summary> /// <returns>Returns collection of field_name-field_value pairs.</returns> public Dictionary <String, String> GetValues() { Dictionary <String, String> result = new Dictionary <String, String>(); UnixDateTimeConverter dateConverter = new UnixDateTimeConverter(); if (Status.HasValue) { result.Add(Constants.STATUS, Status.Value.ToString()); } if (Type.HasValue) { result.Add(Constants.TYPE, Type.Value.ToString()); } if (Nature.HasValue) { result.Add(Constants.NATURE, Nature.Value.ToString()); } if (Direction.HasValue) { result.Add(Constants.DIRECTION, Direction.Value.ToString()); } if (BeforeDate.HasValue) { result.Add(Constants.BEFOREDATE, dateConverter.ConvertToUnixFormat(BeforeDate).Value.ToString()); } if (AfterDate.HasValue) { result.Add(Constants.AFTERDATE, dateConverter.ConvertToUnixFormat(AfterDate).Value.ToString()); } return(result); }
/// <summary>Gets map of fields and values.</summary> /// <returns>Returns collection of field_name-field_value pairs.</returns> public Dictionary <String, String> GetValues() { Dictionary <String, String> result = new Dictionary <String, String>(); UnixDateTimeConverter dateConverter = new UnixDateTimeConverter(); if (Status.HasValue && Status.Value != TransactionStatus.NotSpecified) { result.Add(Constants.STATUS, Status.Value.ToString("G").Replace(" ", "")); } if (Type.HasValue && Type.Value != TransactionType.NotSpecified) { result.Add(Constants.TYPE, Type.Value.ToString("G").Replace(" ", "")); } if (Nature.HasValue && Nature != TransactionNature.NotSpecified) { result.Add(Constants.NATURE, Nature.Value.ToString("G").Replace(" ", "")); } if (BeforeDate.HasValue) { result.Add(Constants.BEFOREDATE, dateConverter.ConvertToUnixFormat(BeforeDate).Value.ToString()); } if (AfterDate.HasValue) { result.Add(Constants.AFTERDATE, dateConverter.ConvertToUnixFormat(AfterDate).Value.ToString()); } if (!String.IsNullOrEmpty(ResultCode)) { result.Add(Constants.RESULT_CODE, ResultCode.ToString()); } return(result); }
/// <summary>Gets map of fields and values.</summary> /// <returns>Returns collection of field_name-field_value pairs.</returns> public Dictionary <String, String> GetValues() { Dictionary <String, String> result = new Dictionary <String, String>(); UnixDateTimeConverter dateConverter = new UnixDateTimeConverter(); if (Status.HasValue && Status.Value != DisputeDocumentStatus.NotSpecified) { result.Add(Constants.STATUS, Status.Value.ToString("G").Replace(" ", "")); } if (Type.HasValue && Type.Value != DisputeDocumentType.NotSpecified) { result.Add(Constants.TYPE, Type.Value.ToString("G").Replace(" ", "")); } if (BeforeDate.HasValue) { result.Add(Constants.BEFOREDATE, dateConverter.ConvertToUnixFormat(BeforeDate).Value.ToString()); } if (AfterDate.HasValue) { result.Add(Constants.AFTERDATE, dateConverter.ConvertToUnixFormat(AfterDate).Value.ToString()); } return(result); }
/// <summary>Gets map of fields and values.</summary> /// <returns>Returns collection of field_name-field_value pairs.</returns> public Dictionary<String, String> GetValues() { Dictionary<String, String> result = new Dictionary<String, String>(); UnixDateTimeConverter dateConverter = new UnixDateTimeConverter(); if (BeforeDate.HasValue) result.Add(Constants.BEFOREDATE, dateConverter.ConvertToUnixFormat(BeforeDate).Value.ToString()); if (AfterDate.HasValue) result.Add(Constants.AFTERDATE, dateConverter.ConvertToUnixFormat(AfterDate).Value.ToString()); return result; }
/// <summary>Gets map of fields and values.</summary> /// <returns>Returns collection of field_name-field_value pairs.</returns> public Dictionary <String, String> GetValues() { Dictionary <String, String> result = new Dictionary <String, String>(); UnixDateTimeConverter dateConverter = new UnixDateTimeConverter(); if (BeforeDate.HasValue) { result.Add(Constants.BEFOREDATE, dateConverter.ConvertToUnixFormat(BeforeDate).Value.ToString()); } if (AfterDate.HasValue) { result.Add(Constants.AFTERDATE, dateConverter.ConvertToUnixFormat(AfterDate).Value.ToString()); } return(result); }
/// <summary>Gets map of fields and values.</summary> /// <returns>Collection of field name-field value pairs.</returns> public Dictionary <String, String> GetValues() { Dictionary <String, String> result = new Dictionary <String, String>(); if (Type != EventType.All) { result.Add(Constants.EVENTTYPE, Type.ToString("G").Replace(" ", "")); } UnixDateTimeConverter dateConverter = new UnixDateTimeConverter(); if (BeforeDate.HasValue) { result.Add(Constants.BEFOREDATE, dateConverter.ConvertToUnixFormat(BeforeDate).Value.ToString()); } if (AfterDate.HasValue) { result.Add(Constants.AFTERDATE, dateConverter.ConvertToUnixFormat(AfterDate).Value.ToString()); } return(result); }