public SINnerSearchGroup(SINnerGroup groupbyname, ApplicationUser user) { this.MyParentGroupId = groupbyname?.MyParentGroupId; this.Id = groupbyname?.Id; if (groupbyname != null) { this.IsPublic = groupbyname.IsPublic; } this.Groupname = groupbyname?.Groupname; MyMembers = new List <SINnerSearchGroupMember>(); this.MyGroups = new List <SINnerGroup>(); MySINSearchGroups = new List <SINnerSearchGroup>(); this.MyAdminIdentityRole = groupbyname?.MyAdminIdentityRole; this.Language = groupbyname?.Language; this.PasswordHash = groupbyname?.PasswordHash; this.MySettings = groupbyname?.MySettings; this.HasPassword = this.PasswordHash?.Any() == true; IsFavorite = false; if (user != null) { if (user.FavoriteGroups.Any() == false) { user.FavoriteGroups = user.FavoriteGroups.GroupBy(a => a.FavoriteGuid).Select(b => b.First()).ToList(); } if (user.FavoriteGroups.Any(a => a.FavoriteGuid == this.Id)) { IsFavorite = true; } else { IsFavorite = false; } } }
public SINnerSearchGroup(SINnerGroup groupbyname, ApplicationUser user) { MyParentGroupId = groupbyname?.MyParentGroupId; Id = groupbyname?.Id; if (groupbyname != null) { IsPublic = groupbyname.IsPublic; } Groupname = groupbyname?.Groupname; MyMembers = new List <SINnerSearchGroupMember>(); MyGroups = new List <SINnerGroup>(); MySINSearchGroups = new List <SINnerSearchGroup>(); MyAdminIdentityRole = groupbyname?.MyAdminIdentityRole; Language = groupbyname?.Language; PasswordHash = groupbyname?.PasswordHash; MySettings = groupbyname?.MySettings; HasPassword = PasswordHash?.Length > 0; IsFavorite = false; if (user != null) { if (user.FavoriteGroups.Count > 0) { user.FavoriteGroups = user.FavoriteGroups.GroupBy(a => a.FavoriteGuid).Select(b => b.First()).ToList(); } IsFavorite = user.FavoriteGroups.Any(a => a.FavoriteGuid == Id); } }
public SINnerSearchGroup(SINnerGroup groupbyname) { this.MyParentGroupId = groupbyname?.MyParentGroupId; this.Id = groupbyname?.Id; if (groupbyname != null) { this.IsPublic = groupbyname.IsPublic; } this.Groupname = groupbyname?.Groupname; MyMembers = new List <SINnerSearchGroupMember>(); this.MyGroups = new List <SINnerGroup>(); }
public SINnerSearchGroup(SINnerGroup groupbyname) { this.MyParentGroupId = groupbyname?.MyParentGroupId; this.Id = groupbyname?.Id; if (groupbyname != null) { this.IsPublic = groupbyname.IsPublic; } this.Groupname = groupbyname?.Groupname; MyMembers = new List <SINnerSearchGroupMember>(); this.MyGroups = new List <SINnerGroup>(); MySINSearchGroups = new List <SINnerSearchGroup>(); this.MyAdminIdentityRole = groupbyname.MyAdminIdentityRole; this.Language = groupbyname.Language; this.PasswordHash = groupbyname.PasswordHash; this.MySettings = groupbyname.MySettings; }
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroup.SINnerSearchGroup(SINnerGroup)' public SINnerSearchGroup(SINnerGroup groupbyname) #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroup.SINnerSearchGroup(SINnerGroup)' { this.MyParentGroupId = groupbyname?.MyParentGroupId; this.Id = groupbyname?.Id; if (groupbyname != null) { this.IsPublic = groupbyname.IsPublic; } this.Groupname = groupbyname?.Groupname; MyMembers = new List <SINnerSearchGroupMember>(); this.MyGroups = new List <SINnerGroup>(); MySINSearchGroups = new List <SINnerSearchGroup>(); this.MyAdminIdentityRole = groupbyname?.MyAdminIdentityRole; this.Language = groupbyname?.Language; this.PasswordHash = groupbyname?.PasswordHash; this.MySettings = groupbyname?.MySettings; }
public ResultGroupPostGroup() { MyGroup = new SINnerGroup(); }
public ResultSinnerGetSINnerGroupFromSINerById(SINnerGroup group) { MySINnerGroup = group; }
public ResultSinnerGetSINnerGroupFromSINerById() { MySINnerGroup = new SINnerGroup(); }
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultSinnerGetSINnerGroupFromSINerById.ResultSinnerGetSINnerGroupFromSINerById(SINnerGroup)' public ResultSinnerGetSINnerGroupFromSINerById(SINnerGroup group) #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultSinnerGetSINnerGroupFromSINerById.ResultSinnerGetSINnerGroupFromSINerById(SINnerGroup)' { MySINnerGroup = group; }
public ResultGroupPutGroupInGroup() { MyGroup = new SINnerGroup(); }
public ResultGroupGetGroupById(SINnerGroup group) { MyGroup = group; }
public ResultGroupGetGroupById() { MyGroup = new SINnerGroup(); }
public SINnerSearchGroup(SINnerGroup groupbyname) { this.IsPublic = groupbyname.IsPublic; this.Groupname = groupbyname.Groupname; MyMembers = new List <SINnerSearchGroupMember>(); }
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupGetGroupById.MyGroup' #pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupGetGroupById.ResultGroupGetGroupById()' public ResultGroupGetGroupById() #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupGetGroupById.ResultGroupGetGroupById()' { MyGroup = new SINnerGroup(); }
public ResultGroupPutGroupInGroup(SINnerGroup group) { MyGroup = group; }
public ResultGroupPostGroup(SINnerGroup group) { MyGroup = group; }
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupPostGroup.ResultGroupPostGroup(SINnerGroup)' public ResultGroupPostGroup(SINnerGroup group) #pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupPostGroup.ResultGroupPostGroup(SINnerGroup)' { MyGroup = group; }
public ResultGroupPutSetting(SINnerGroup group) { MyGroup = group; }