Esempio n. 1
0
        public ActionResult ActivityFeedPage(
            [FromUri(Name = "tenantId")] string tenantId,
            [FromUri(Name = "teamId")] string teamId,
            [FromUri(Name = "channelId")] string channelId,
            [FromUri(Name = "userId")] string userId)
        {
            ActivityFeedModel activityFeedModel = new ActivityFeedModel
            {
                TenantId  = tenantId,
                TeamId    = teamId,
                ChannelId = channelId,
                UserId    = userId
            };

            return(View("ActivityFeedPage", activityFeedModel));
        }
Esempio n. 2
0
        public async Task <ActionResult> SendActivityFeedNotification(
            string tenantId,
            string teamId,
            string channelId,
            string userId)
        {
            string messagingToken = await Authorization.GetAppPermissionToken(tenantId);

            new SendActivityFeedNotificationRequest(tenantId, teamId, channelId, userId, messagingToken).SendRequest();

            ActivityFeedModel activityFeedModel = new ActivityFeedModel
            {
                TenantId  = tenantId,
                TeamId    = teamId,
                ChannelId = channelId,
                UserId    = userId,
            };

            return(View("ActivityFeedPage", activityFeedModel));
        }