コード例 #1
0
        public OfferResponseObject GetOffer(string keycode)
        {
            GetOfferRequest     request       = new GetOfferRequest(keycode, false);
            OfferResponseObject response      = new OfferResponseObject();
            BaseResponse        base_response = Gatekeeper.GetOffer(request);

            if (base_response.Messages.Count > 0)
            {
                response.ResponseCode = 100;
            }
            if (response.ResponseCode == 0)
            {
                GetMemberResponse member_response = base_response.TypedResponse as GetMemberResponse;
                response.RenewalOffers = member_response.RenewalOffers;
            }
            return(response);
        }
コード例 #2
0
        public OfferResponseObject GetOffer(string keycode)
        {
            GetOfferRequest request = new GetOfferRequest(keycode, false);
            OfferResponseObject response = new OfferResponseObject();
            BaseResponse base_response = Gatekeeper.GetOffer(request);

            if (base_response.Messages.Count > 0)
            {
                response.ResponseCode = 100;
            }
            if (response.ResponseCode == 0)
            {
                GetMemberResponse member_response = base_response.TypedResponse as GetMemberResponse;
                response.RenewalOffers = member_response.RenewalOffers;
            }
            return response;
        }