scheunemann-interfaces
Version:
Interfaces de Projetos Scheunemann
76 lines (75 loc) • 2.33 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AppEntity = void 0;
var general_1 = require("../../general");
var app_type_enum_1 = require("../enums/app-type.enum");
var header_type_enum_1 = require("../enums/header-type.enum");
var mode_enum_1 = require("../enums/mode.enum");
var AppEntity = /** @class */ (function () {
// #endregion Properties (33)
// #region Constructors (1)
function AppEntity(data) {
// #region Properties (33)
this.active = false;
this.activeInstalls = 0;
/**
* Indica se permite adicionar a assinatura
*/
this.allowAddSubscription = false;
this.allowDefaultDevice = false;
this.carousel = [];
this.categories = [];
this.createdBy = '';
this.description = '';
this.downloadUrl = '';
this.features = [];
this.headerImage = '';
this.headerType = header_type_enum_1.EAppHeaderType.IMAGE;
this.headerVideo = '';
this.iconUrl = '';
this.id = '';
this.instanceNumberAllowed = 1;
/**
* Intervalo de tempo para o preço
* @example
* 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
* Para intervalType = MONTHS
* 1 = 1 mês (mensal)
*
*/
this.interval = 0;
/**
* Tipo de intervalo para o preço
* @example
* Mensal, Semanal, Diário
*/
this.intervalType = general_1.EIntervalType.MONTHS;
this.isUnique = false;
this.mode = mode_enum_1.EAppMode.NONE;
this.name = '';
/**
* Indica se o app é gratuito ou não
*/
this.os = [];
this.platforms = [];
this.price = 0;
this.production = false;
this.ratings = [];
this.secrets = '';
this.tags = [];
this.totalInstalls = 0;
this.trialTime = 0;
this.type = app_type_enum_1.EAppType.FREE;
this.versionCode = 1;
this.versionName = '';
if (data) {
for (var key in data) {
if (data.hasOwnProperty(key) && key in this) {
this[key] = data[key];
}
}
}
}
return AppEntity;
}());
exports.AppEntity = AppEntity;