public void PostCommentToActivity(string activityId, ActivityPostContent comment, Action <ActivityPost> onSuccess, Action <GetSocialError> onFailure)
        {
            var rpcContent = comment.ToRpcModel();

            LogRequest("postComment", string.Format("activityId: {0}, content: {1}", activityId, rpcContent));
            WithHadesClient(client =>
            {
                var response = client.postComment(SessionId, activityId, rpcContent);
                Ui(() =>
                {
                    LogResponse("postComment", response);
                    onSuccess.SafeCall(response.FromRpcModel());
                });
            }, onFailure);
        }
        public void PostActivityToFeed(string feed, ActivityPostContent content, Action <ActivityPost> onSuccess, Action <GetSocialError> onFailure)
        {
            var rpcContent = content.ToRpcModel();

            LogRequest("postActivity", string.Format("feed: {0}, content: {1}", feed, rpcContent));
            WithHadesClient(client =>
            {
                var response = client.postActivity(SessionId, GetFeedName(feed), rpcContent);
                Ui(() =>
                {
                    LogResponse("postActivity", response);
                    onSuccess.SafeCall(response.FromRpcModel());
                });
            }, onFailure);
        }