Esempio n. 1
0
 public static Card ToDto(this ReadCardRequest request)
 => new Card
 {
     CardValue = (CardValue)request.CardValue
 };
Esempio n. 2
0
        //public PostSampleResponse Post(PostSampleRequest request) => new PostSampleResponse { Id = _sampleManager.Post(request.ToDto()) };

        public ReadCardResponse ReadCard(ReadCardRequest request) => new ReadCardResponse
        {
            Card = _cardManager.Get(request.ToDto()).ToServiceModel()
        };
Esempio n. 3
0
 /// <summary>
 /// 读卡
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public ReadCardResponse ReadCard(ReadCardRequest request)
 {
     return(_service.ReadCard(request));
 }
Esempio n. 4
0
 /// <summary>
 /// 读卡
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public ReadCardResponse ReadCard(ReadCardRequest request)
 {
     throw new NotImplementedException();
 }
Esempio n. 5
0
 /// <summary>
 /// 读卡
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public ReadCardResponse ReadCard(ReadCardRequest request)
 {
     return(SendRequest <ReadCardRequest, ReadCardResponse>(111, request));
 }