示例#1
0
        public void  MapToSingletonUserModel(FaceitPlayerModel model, UserModel singleton)
        {
            var output = _mapper.Map <UserModel>(model);

            output.Avatar        = _converter.GetImgByUrl(model.avatar);
            singleton.Avatar     = output.Avatar;
            singleton.CountryImg = output.CountryImg;
            singleton.Email      = output.Email;
            singleton.Nickname   = output.Nickname;
            singleton.Password   = output.Password;
            singleton.Playerid   = output.Playerid;
        }
示例#2
0
 public void MapToSingletonSearchedUserModel(FaceitPlayerModel model, SearchedUserModel singleton)
 {
     singleton.avatar    = _converter.GetImgByUrl(model.avatar);
     singleton.nickname  = model.nickname;
     singleton.player_id = model.player_id;
 }