Frontend: Add account model #225
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
9f4a5e7170
commit
0f5d7a7e42
1 changed files with 56 additions and 0 deletions
56
frontend/src/model/account.js
Normal file
56
frontend/src/model/account.js
Normal file
|
@ -0,0 +1,56 @@
|
|||
import Abstract from "model/abstract";
|
||||
|
||||
class Account extends Abstract {
|
||||
getDefaults() {
|
||||
return {
|
||||
ID: 0,
|
||||
AccName: "",
|
||||
AccOwner: "",
|
||||
AccURL: "",
|
||||
AccType: "",
|
||||
AccKey: "",
|
||||
AccUser: "",
|
||||
AccPass: "",
|
||||
AccError: "",
|
||||
AccPush: false,
|
||||
AccSync: false,
|
||||
RetryLimit: 3,
|
||||
PushPath: "",
|
||||
PushSize: "",
|
||||
PushExpires: 0,
|
||||
PushExif: true,
|
||||
PushSidecar: false,
|
||||
SyncPath: "",
|
||||
SyncInterval: 86400,
|
||||
SyncUpload: false,
|
||||
SyncDownload: true,
|
||||
SyncDelete: false,
|
||||
SyncRaw: true,
|
||||
SyncVideo: true,
|
||||
SyncSidecar: true,
|
||||
SyncStart: null,
|
||||
SyncedAt: null,
|
||||
CreatedAt: "",
|
||||
UpdatedAt: "",
|
||||
DeletedAt: null,
|
||||
};
|
||||
}
|
||||
|
||||
getEntityName() {
|
||||
return this.AccName;
|
||||
}
|
||||
|
||||
getId() {
|
||||
return this.ID;
|
||||
}
|
||||
|
||||
static getCollectionResource() {
|
||||
return "accounts";
|
||||
}
|
||||
|
||||
static getModelName() {
|
||||
return "Account";
|
||||
}
|
||||
}
|
||||
|
||||
export default Account;
|
Loading…
Reference in a new issue