import IpcClient from "./IpcClient";
|
|
import Application from "../../Application";
|
|
|
|
export default class SeekerIpcClient extends IpcClient
|
|
{
|
|
/**
|
|
* Create a new IPC client for the Seeker
|
|
*/
|
|
constructor(app: Application) {
|
|
super("Seeker IPC", app, "request", "seeker");
|
|
}
|
|
|
|
// Methods -------------------------------------------------------------------------------------
|
|
|
|
/**
|
|
* Notify Seeker that a movie was added
|
|
*/
|
|
public notifyMovieRequested(ticketId: number) {
|
|
this.request("search_movie", ticketId).catch((e) => {
|
|
this.log("No response from seeker notifying added movie");
|
|
});
|
|
}
|
|
}
|