Ejemplo n.º 1
0
        public EsnLikesServiceResponse GetWhoLikedMessage(Guid messageId)
        {
            EsnLikesServiceResponse result;

            try {
                var likes = EsnCenter.GetWhoLikedMessage(messageId);
                result = new EsnLikesServiceResponse {
                    EsnLikes = likes
                };
            } catch (Exception e) {
                result = new EsnLikesServiceResponse(e);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public EsnLikesServiceResponse GetMessageLikesForUser(List <Guid> messageIds)
        {
            EsnLikesServiceResponse result;

            try {
                var likes = EsnCenter.GetMessageLikesForUser(GetCurrentUserId, messageIds);
                result = new EsnLikesServiceResponse {
                    EsnLikes = likes
                };
            } catch (Exception e) {
                result = new EsnLikesServiceResponse(e);
            }
            return(result);
        }