Example #1
0
        public static void BlockFriend(Guid userId, Guid friendId)
        {
            _4screen.CSB.DataAccess.Data.FriendHanlder fHanlder = new _4screen.CSB.DataAccess.Data.FriendHanlder();
            fHanlder.BlockFriend(userId, friendId, 1);

            //  SPs.HispUserFriendBlock(userId, friendId, 1).Execute();
        }
Example #2
0
 public static void Save(Guid userId, Guid friendId, bool blockFriend, int friendType, int allowBirthdayNotification)
 {
     _4screen.CSB.DataAccess.Data.FriendHanlder fHanlder = new _4screen.CSB.DataAccess.Data.FriendHanlder();
     fHanlder.Save(userId, friendId, Convert.ToInt32(blockFriend), friendType, allowBirthdayNotification);
     Business.UserActivities.InsertFriendship(userId, null, friendId);
     //SPs.HispUserFriendSaveFriend(userId, friendId, Convert.ToInt32(blockFriend), friendType).ExecuteScalar();
 }
Example #3
0
        public static void TransferFriendAsCommunityMember(Guid communityID, Guid friendId)
        {
            _4screen.CSB.DataAccess.Data.FriendHanlder fHanlder = new _4screen.CSB.DataAccess.Data.FriendHanlder();
            fHanlder.TransferFriendAsCommunityMember(friendId, communityID);

            //SPs.HispUserFriendTransferAsCommunityMember(friendId, communityID);
        }
Example #4
0
 public static void DeleteFriend(Guid userId, Guid friendId)
 {
     _4screen.CSB.DataAccess.Data.FriendHanlder fHanlder = new _4screen.CSB.DataAccess.Data.FriendHanlder();
     fHanlder.DeleteFriend(userId, friendId);
     //SPs.HispUserFriendRemoveFriend(userId, friendId).Execute();
 }
Example #5
0
 public static void BirthdayNotification(string userId, string friendId, int allow)
 {
     _4screen.CSB.DataAccess.Data.FriendHanlder fHanlder = new _4screen.CSB.DataAccess.Data.FriendHanlder();
     fHanlder.BirthdayNotification(userId, friendId, allow);
 }
Example #6
0
 public static bool IsBlocked(Guid userId, Guid friendId)
 {
     _4screen.CSB.DataAccess.Data.FriendHanlder fHanlder = new _4screen.CSB.DataAccess.Data.FriendHanlder();
     return(fHanlder.IsBlocked(userId, friendId));
     //return Convert.ToBoolean(SPs.HispUserFriendIsBlocked(userId, friendId).ExecuteScalar());
 }
Example #7
0
 public static Dictionary <int, string> GetFriendTypes(string langCode)
 {
     _4screen.CSB.DataAccess.Data.FriendHanlder fHanlder = new _4screen.CSB.DataAccess.Data.FriendHanlder();
     return(fHanlder.GetFriendTypes(langCode));
 }