public void OnApply(string message) { var request = new NotifyMessageRequest(ActionType.FRIEND_APPLY, _UserRelationService.Receiver, _UserRelationService.Sender, new long[] { _UserRelationService.Receiver }, new { message = message }); _NotifyServiceProxy.Notify(request); }
public void OnDockedApply(IUserDockedService userDockedService) { ExceptionHelper.ThrowIfNull(userDockedService, nameof(userDockedService)); var actionType = ActionType.FOOTPRINT_DOCKED_APPLY; var notifyRequest = new NotifyMessageRequest(actionType, actionType.DefaultMessageType, userDockedService.Receiver, userDockedService.Sender, new long[] { userDockedService.Receiver }, ContentType.Text, userDockedService.Message); _NotifyServiceProxy.Notify(notifyRequest); }
public void NotifyPublishUser() { var uid = _FootPrintService.Uid; var isHaveFollowOtherUser = _FootPrintManager.PassFootPrints.Any(p => p.uid != uid); var content = "您发布的{0}关联的足迹已经审核通过,马上查看项目动态及其他同跟人项目信息,获取更多项目线索"; var viewDetial = ""; if (isHaveFollowOtherUser) { viewDetial = "项目动态及其他同跟人项目信息"; } else { viewDetial = "项目最新动态"; } content = string.Format(content, ProjectSource.name, viewDetial); var request = new NotifyMessageRequest(ActionType.FOOTCHAT_PASS, 0, 0, new long[] { uid } , new PushMessage() { Content = content, Url = "http://m.fc.tgnet.com/ProjFollow/List" }); _NotifyServiceProxy.Notify(request); }