Exemple #1
0
 public List<Message> GetRelevantMessages(Authentication auth, int skip, int take)
 {
     using (var business = new SocialServiceBusiness())
     {
         business.Authentication.AuthenticateUser(auth);
         return business.Groups.GetRelevantMessages(auth.UserId, skip, take);
     }
 }
Exemple #2
0
 public List<GroupExtended> GetGroupsExtended(Authentication auth)
 {
     using (var business = new SocialServiceBusiness())
     {
         business.Authentication.AuthenticateUser(auth);
         return business.Groups.GetGroupsExtended(auth.UserId);
     }
 }
Exemple #3
0
 public List<Message> GetMessages(Authentication auth, int groupId)
 {
     using (var business = new SocialServiceBusiness())
     {
         business.Authentication.AuthenticateUser(auth);
         return business.Groups.GetMessages(auth.UserId, groupId);
     }
 }
Exemple #4
0
 public List<Group> GetGroups(Authentication auth)
 {
     using (var business = new SocialServiceBusiness())
     {
         business.Authentication.AuthenticateUser(auth);
         return business.Groups.GetGroups();
     }
 }
Exemple #5
0
 public Group GetGroup(Authentication auth, int groupId)
 {
     using (var business = new SocialServiceBusiness())
     {
         business.Authentication.AuthenticateUser(auth);
         return business.Groups.GetGroup(groupId);
     }
 }
Exemple #6
0
 public void EnrollInGroup(Authentication auth, int groupId)
 {
     using (var business = new SocialServiceBusiness())
     {
         business.Authentication.AuthenticateUser(auth);
         business.Groups.EnrollInGroup(auth.UserId, groupId);
     }
 }
Exemple #7
0
 public void DeleteMessage(Authentication auth, int messageId)
 {
     using (var business = new SocialServiceBusiness())
     {
         business.Authentication.AuthenticateUser(auth);
         business.Groups.DeleteMessage(auth.UserId, messageId);
     }
 }
Exemple #8
0
 public int AddGroup(Authentication auth, Group group)
 {
     using (var business = new SocialServiceBusiness())
     {
         business.Authentication.AuthenticateUser(auth);
         return business.Groups.AddGroup(group);
     }
 }
Exemple #9
0
 public void PostMessage(Authentication auth, Message message, int? parentId)
 {
     using(var business = new SocialServiceBusiness())
     {
         business.Authentication.AuthenticateUser(auth);
         business.Groups.PostMessage(message, parentId);
     }
 }
Exemple #10
0
 public Authentication Login(LoginCredentials credentials)
 {
     using (var business = new SocialServiceBusiness())
         return business.Authentication.Login(credentials);
 }