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