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, GetBodyByIdApi getBodyByIdApi, SearchApi searchApi, SearchEndpointApi searchEndpointApi) { this.getAllMessagesForEndpointApi = getAllMessagesForEndpointApi; this.getAllMessagesApi = getAllMessagesApi; this.getBodyByIdApi = getBodyByIdApi; this.searchEndpointApi = searchEndpointApi; this.searchApi = searchApi; }
internal GetMessagesController(GetAllMessagesApi getAllMessagesApi, GetAllMessagesForEndpointApi getAllMessagesForEndpointApi) { this.getAllMessagesForEndpointApi = getAllMessagesForEndpointApi; this.getAllMessagesApi = getAllMessagesApi; }