photoprism/frontend/src/model/account.js

57 lines
1.2 KiB
JavaScript
Raw Normal View History

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;