internal GetMessagesController(GetAllMessagesApi getAllMessagesApi,
                                GetAllMessagesForEndpointApi getAllMessagesForEndpointApi,
                                GetBodyByIdApi getBodyByIdApi,
                                SearchApi searchApi,
                                SearchEndpointApi searchEndpointApi)
 {
     this.getAllMessagesApi            = getAllMessagesApi;
     this.getAllMessagesForEndpointApi = getAllMessagesForEndpointApi;
     this.getBodyByIdApi    = getBodyByIdApi;
     this.searchEndpointApi = searchEndpointApi;
     this.searchApi         = searchApi;
 }
Exemplo n.º 2
0
        public GetMessages()
        {
            Get["/messages", true] = (parameters, token) => { return(GetAllMessagesApi.Execute(this)); };


            Get["/endpoints/{name}/messages", true] = (parameters, token) =>
            {
                string endpoint = parameters.name;

                return(GetAllMessagesForEndpointApi.Execute(this, endpoint));
            };
        }
 internal GetMessagesController(GetAllMessagesApi getAllMessagesApi, GetAllMessagesForEndpointApi getAllMessagesForEndpointApi)
 {
     this.getAllMessagesApi            = getAllMessagesApi;
     this.getAllMessagesForEndpointApi = getAllMessagesForEndpointApi;
 }