Exemplo n.º 1
0
 public SINnerExtended(SINner sinner)
 {
     JsonSummary = "";
     //MySINner = null;
     Id       = Guid.NewGuid();
     SINnerId = sinner.Id;
 }
Exemplo n.º 2
0
 public SINnerSearchGroupMember(ApplicationUser user, SINner member)
 {
     //if (user == null)
     //    throw new ArgumentNullException(nameof(user));
     Username = user?.UserName;
     MySINner = member ?? throw new ArgumentNullException(nameof(member));
     if (user != null && user.FavoriteGroups?.Count > 0)
     {
         user.FavoriteGroups = user.FavoriteGroups.GroupBy(a => a.FavoriteGuid).Select(b => b.First()).ToList();
         IsFavorite          = user.FavoriteGroups.Any(a => a.FavoriteGuid == MySINner.Id);
     }
 }
Exemplo n.º 3
0
 private Tag TagConstructor(SINner sinner, Tag parent)
 {
     if (sinner != null)
     {
         this.SINnerId = sinner.Id;
     }
     this.ParentTag   = parent;
     this.TagName     = "";
     this.TagValue    = "";
     this.ParentTagId = Guid.Empty;
     if (parent != null)
     {
         this.ParentTagId = parent.Id;
     }
     this.Tags       = new List <Tag>();
     this.TagType    = TagValueEnum.unknown;
     IsUserGenerated = false;
     return(this);
 }
Exemplo n.º 4
0
 private Tag TagConstructor(SINner sinner, Tag parent)
 {
     if (sinner != null)
     {
         SINnerId = sinner.Id;
     }
     ParentTag     = parent;
     TagName       = string.Empty;
     TagValue      = string.Empty;
     TagValueFloat = null;
     ParentTagId   = Guid.Empty;
     if (parent != null)
     {
         ParentTagId = parent.Id;
     }
     Tags            = new List <Tag>();
     TagType         = TagValueEnum.unknown;
     IsUserGenerated = false;
     return(this);
 }
Exemplo n.º 5
0
 public SINnerSearchGroupMember(ApplicationUser user, SINner member)
 {
     if (user == null)
     {
         throw new ArgumentNullException(nameof(user));
     }
     Username = user.UserName;
     MySINner = member ?? throw new ArgumentNullException(nameof(member));
     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 == MySINner.Id))
     {
         IsFavorite = true;
     }
     else
     {
         IsFavorite = false;
     }
 }
Exemplo n.º 6
0
 public ResultSINnerPut(SINner sin)
 {
     MySINner = sin;
 }
Exemplo n.º 7
0
 public ResultSINnerPut()
 {
     MySINner = new SINner();
 }
Exemplo n.º 8
0
 public SINnerSearchGroupMember()
 {
     MySINner = new SINner();
 }
Exemplo n.º 9
0
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultSINnerPut.MySINner'

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultSINnerPut.ResultSINnerPut()'
        public ResultSINnerPut()
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultSINnerPut.ResultSINnerPut()'
        {
            MySINner = new SINner();
        }
 public ResultSinnerGetSINById(SINner sinner)
 {
     MySINner = sinner;
 }
 public ResultSinnerGetSINById()
 {
     MySINner = new SINner();
 }
Exemplo n.º 12
0
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroupMember.Username'

#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroupMember.SINnerSearchGroupMember()'
        public SINnerSearchGroupMember()
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'SINnerSearchGroupMember.SINnerSearchGroupMember()'
        {
            MySINner = new SINner();
        }
Exemplo n.º 13
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultSinnerGetSINById.ResultSinnerGetSINById(SINner)'
        public ResultSinnerGetSINById(SINner sinner)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultSinnerGetSINById.ResultSinnerGetSINById(SINner)'
        {
            MySINner = sinner;
        }
Exemplo n.º 14
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'Tag.Tag(SINner, Tag)'
        public Tag(SINner sinner, Tag parent)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'Tag.Tag(SINner, Tag)'
        {
            TagConstructor(sinner, parent);
        }
Exemplo n.º 15
0
 public SINnerExtended()
 {
     JsonSummary = "";
     MySINner    = null;
     Id          = Guid.Empty;
 }
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupPutSINerInGroup.ResultGroupPutSINerInGroup(SINner)'
        public ResultGroupPutSINerInGroup(SINner sin)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member 'ResultGroupPutSINerInGroup.ResultGroupPutSINerInGroup(SINner)'
        {
            MySINner = sin;
        }
Exemplo n.º 17
0
 public ResultGroupPutSINerInGroup()
 {
     MySINner = new SINner();
 }
Exemplo n.º 18
0
 public Tag(SINner sinner, Tag parent)
 {
     TagConstructor(sinner, parent);
 }
Exemplo n.º 19
0
 public ResultGroupPutSINerInGroup(SINner sin)
 {
     MySINner = sin;
 }