Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 507 Bytes
@testable import Vapor
@testable import App
class FBServiceMock: BotServiceProtocol, Service {
let FacebookAPIToken = Environment.get("FBAPITOKEN")
var responseMessage: String?
var response: HTTPResponse?
func sendFBMessage(_ req: Request, message: FBMessage, recipient: FBUserID) throws -> EventLoopFuture<Response> {
responseMessage = message.text
return req.future(req.response(http: response!))
}
func isSignatureValid(for req: Request) throws -> Bool {
return true
}
}
You can’t perform that action at this time.