public static Tester ToTester(this MobileCenterApi.Models.DistributionGroupUserGetResponse resp, DistributionGroup distribution, User user) { return(new Tester { DisplayName = user.DisplayName, DistributionId = distribution.Id, User = user, InvitePending = resp.InvitePending, AppId = distribution.AppId, }); }
public static User ToUser(this MobileCenterApi.Models.DistributionGroupUserGetResponse resp) { return(new User { AvatarUrl = resp.AvatarUrl, Id = resp.Id, CanChangePassword = resp.CanChangePassword, DisplayName = resp.DisplayName, Email = resp.Email, Name = resp.Name, IndexCharacter = BaseModel.GetIndexChar(resp.DisplayName), }); }