Tweak Terms constructor
This commit is contained in:
parent
889289d464
commit
eb9bf9c83f
1 changed files with 1 additions and 5 deletions
|
@ -27,16 +27,12 @@ export class TermsNotSignedError extends Error {}
|
||||||
* require agreement from the user before the user can use that service.
|
* require agreement from the user before the user can use that service.
|
||||||
*/
|
*/
|
||||||
export class Service {
|
export class Service {
|
||||||
public serviceType: string;
|
|
||||||
public baseUrl: string;
|
|
||||||
public accessToken: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {MatrixClient.SERVICE_TYPES} serviceType The type of service
|
* @param {MatrixClient.SERVICE_TYPES} serviceType The type of service
|
||||||
* @param {string} baseUrl The Base URL of the service (ie. before '/_matrix')
|
* @param {string} baseUrl The Base URL of the service (ie. before '/_matrix')
|
||||||
* @param {string} accessToken The user's access token for the service
|
* @param {string} accessToken The user's access token for the service
|
||||||
*/
|
*/
|
||||||
constructor(serviceType, baseUrl, accessToken) {
|
constructor(public serviceType: string, public baseUrl: string, public accessToken: string) {
|
||||||
this.serviceType = serviceType;
|
this.serviceType = serviceType;
|
||||||
this.baseUrl = baseUrl;
|
this.baseUrl = baseUrl;
|
||||||
this.accessToken = accessToken;
|
this.accessToken = accessToken;
|
||||||
|
|
Loading…
Reference in a new issue