コード例 #1
0
        public EsnMessagesServiceResponse ReadFeed(EsnReadMessageOptions readOptions)
        {
            var result = new EsnMessagesServiceResponse();

            try {
                result.EsnMessages = EsnCenter.ReadFeedMessage(readOptions);
            } catch (Exception e) {
                result = new EsnMessagesServiceResponse(e);
            }
            return(result);
        }
コード例 #2
0
        public EsnMessagesServiceResponse ReadMessage(Guid schemaUId, Guid entityId, Guid messageId)
        {
            var result = new EsnMessagesServiceResponse();

            try {
                result.EsnMessages = new [] { EsnCenter.ReadMessage(schemaUId, entityId, messageId) };
            } catch (Exception e) {
                result = new EsnMessagesServiceResponse(e);
            }
            return(result);
        }
コード例 #3
0
        public EsnMessagesServiceResponse ReadEntityMessage(Guid schemaUId, Guid entityId,
                                                            EsnReadMessageOptions readOptions)
        {
            var result = new EsnMessagesServiceResponse();

            try {
                result.EsnMessages = EsnCenter.ReadEntityMessage(schemaUId, entityId, readOptions);
            } catch (Exception e) {
                result = new EsnMessagesServiceResponse(e);
            }
            return(result);
        }