Created
January 8, 2020 09:04
-
-
Save oleksabor/5bd1dc618c47505b5c764b8c4e17fda9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Runtime.Serialization; | |
using System.Text; | |
namespace binary100KLoader | |
{ | |
public class GenericResponse<T> | |
{ | |
private string code = "200"; | |
private string message = "Request completed Successfully."; | |
private T m_obj; | |
[DataMember(EmitDefaultValue = false, Order = 1)] | |
public string Code | |
{ | |
set { code = value; } | |
get { return code; } | |
} | |
[DataMember(EmitDefaultValue = false, Order = 2)] | |
public string Message | |
{ | |
set { message = value; } | |
get { return message; } | |
} | |
[DataMember(EmitDefaultValue = false, Order = 3)] | |
public T ResultSet { get { return m_obj; } set { m_obj = value; } } | |
public bool HasException() | |
{ | |
return false; | |
} | |
public GenericResponse() | |
{ | |
} | |
} | |
public class AllLookUpResponseEntity | |
{ | |
public string RowState { get; set; } | |
public AppStatuses Application_Status { get; set; } | |
} | |
public class AppStatuses | |
{ | |
public AppStatus[] Array { get; set; } | |
} | |
public class AppStatus | |
{ | |
public int RowState { get; set; } | |
public string Status; | |
public string Status_code; | |
public string Status_local; | |
} | |
[DataContract(Namespace = "")] | |
public class LookUpsResponse | |
{ | |
[DataMember(EmitDefaultValue = false, Name = "ProposalDDLs")] | |
public AllLookUpResponseEntity ProposalDDLs { get; set; } | |
////ProposalEnums | |
//[DataMember(EmitDefaultValue = false, Name = "ProposalEnums")] | |
//public AllLookUpEnumsEntity ProposalEnums { get; set; } | |
////[DataMember(EmitDefaultValue = false, Name = "CAPAllUserName")] | |
//public List<CAPAllUserName> CAPAllUserName { get; set; } | |
//// [DataMember(EmitDefaultValue = false, Name = "IMAGE_SERVICE_ADDRESS")] | |
//public string IMAGE_SERVICE_ADDRESS { get; set; } | |
//// [DataMember(EmitDefaultValue = false, Name = "AMP_REPORT_LINK")] | |
//public string AMP_REPORT_LINK { get; set; } | |
////UAT-198 | |
//// [DataMember(EmitDefaultValue = false, Name = "Dealer_FPs")] | |
//public List<ProductTypeLookUp> Dealer_FPs { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment