Esempio n. 1
0
 public static LoyaltyPointsInfoResponse CreateResponseError(
     string inMessage,
     string inDescription,
     LoyaltyResponseCode inResponseCode,
     PointsInfo inPointsInfo)
 {
     return(CreateResponse(false, inMessage, inDescription, inResponseCode, inPointsInfo));
 }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 internal LoyaltyPointsInfoResponse(
     bool inSuccesful,
     string inMessage,
     string inDescription,
     LoyaltyResponseCode inResponseCode,
     PointsInfo inPointsInfo)
     : base(inSuccesful, inMessage, inDescription)
 {
     _responseCode = inResponseCode;
     _pointsInfo   = CreatePointsInfo(inPointsInfo);
 }
Esempio n. 4
0
 public static LoyaltyPointsInfoResponse CreateResponse(
     bool inSuccesful,
     string inMessage,
     string inDescription,
     LoyaltyResponseCode inResponseCode,
     PointsInfo inPointsInfo)
 {
     return(new LoyaltyPointsInfoResponse(
                inSuccesful,
                inMessage,
                inDescription,
                inResponseCode,
                inPointsInfo));
 }
Esempio n. 5
0
 public static LoyaltyPointsInfoResponse CreateResponseNoError(PointsInfo inPointsInfo)
 {
     return(CreateResponse(true, "", "", LoyaltyResponseCode.Successful, inPointsInfo));
 }