cloudflare/ts/cflare.classes.ts

38 lines
969 B
TypeScript
Raw Normal View History

2016-04-27 00:20:27 +00:00
/// <reference path="./typings/main.d.ts" />
import plugins = require("./cflare.plugins");
import helpers = require("./cflare.classes.helpers");
class cflare {
private authEmail:string;
private authKey:string;
2016-04-27 01:08:14 +00:00
private authCheck(){
return (this.authEmail && this.authKey); //check if auth is available
}
2016-04-27 00:20:27 +00:00
constructor(){
};
2016-04-27 01:08:14 +00:00
auth(optionsArg:{email:string,key:string}){
this.authEmail = optionsArg.email;
this.authKey = optionsArg.key;
}
createRecord(){
let done = plugins.q.defer();
return done.promise;
};
removeRecord(){
let done = plugins.q.defer();
return done.promise;
};
listRecords(){
let done = plugins.q.defer();
return done.promise;
}
listDomains(){
let done = plugins.q.defer();
return done.promise;
};
request(){
let done = plugins.q.defer();
return done.promise;
}
2016-04-27 00:20:27 +00:00
};