public static LoyaltyPointsInfoResponse CreateResponseError( string inMessage, string inDescription, LoyaltyResponseCode inResponseCode, PointsInfo inPointsInfo) { return(CreateResponse(false, inMessage, inDescription, inResponseCode, inPointsInfo)); }
PointsInfo CreatePointsInfo(PointsInfo inPointsInfo) { var result = new PointsInfo(); result.Balance = inPointsInfo.Balance; result.EndDate = inPointsInfo.EndDate; result.StartDate = inPointsInfo.EndDate; result.PointsType = inPointsInfo.PointsType; result.UniqueId = inPointsInfo.UniqueId; return(result); }
internal LoyaltyPointsInfoResponse( bool inSuccesful, string inMessage, string inDescription, LoyaltyResponseCode inResponseCode, PointsInfo inPointsInfo) : base(inSuccesful, inMessage, inDescription) { _responseCode = inResponseCode; _pointsInfo = CreatePointsInfo(inPointsInfo); }
public static LoyaltyPointsInfoResponse CreateResponse( bool inSuccesful, string inMessage, string inDescription, LoyaltyResponseCode inResponseCode, PointsInfo inPointsInfo) { return(new LoyaltyPointsInfoResponse( inSuccesful, inMessage, inDescription, inResponseCode, inPointsInfo)); }
public static LoyaltyPointsInfoResponse CreateResponseNoError(PointsInfo inPointsInfo) { return(CreateResponse(true, "", "", LoyaltyResponseCode.Successful, inPointsInfo)); }