src/app/models/Cell.ts
Properties |
|
| _id |
_id:
|
Type : string
|
| Optional |
| accessType |
accessType:
|
Type : string
|
| Optional |
| assignedUsers |
assignedUsers:
|
Type : _UserLight[]
|
| Optional |
| batchNo |
batchNo:
|
Type : string
|
| Optional |
| cellChemistry |
cellChemistry:
|
Type : string
|
| Optional |
| cellName |
cellName:
|
Type : string
|
| Optional |
| cellQuantity |
cellQuantity:
|
Type : Number
|
| Optional |
| formFactor |
formFactor:
|
Type : string
|
| Optional |
| manufacturer |
manufacturer:
|
Type : string
|
| Optional |
| maxVolt |
maxVolt:
|
Type : Number
|
| Optional |
| minVolt |
minVolt:
|
Type : Number
|
| Optional |
| nomCap |
nomCap:
|
Type : Number
|
| Optional |
| nomCurr |
nomCurr:
|
Type : Number
|
| Optional |
| nomVolt |
nomVolt:
|
Type : Number
|
| Optional |
| testsPerformed |
testsPerformed:
|
Type : literal type[]
|
| Optional |
| type |
type:
|
Type : string
|
| Optional |
| users |
users:
|
Type : any[]
|
| Optional |
import { _UserLight } from './../services/user.service';
export interface Cell {
_id?: string;
cellName?: string;
cellQuantity?: Number; //should not be presetn on api schema
manufacturer?: string;
batchNo?: string;
type?: string;
formFactor?: string;
cellChemistry?: string;
nomVolt?: Number;
nomCap?: Number;
nomCurr?: Number;
maxVolt?: Number;
minVolt?: Number;
users?: any[];
accessType?: string;
assignedUsers?: _UserLight[];
testsPerformed?: { testConfigChannelId: string }[];
}
export class CellClass implements Cell {
constructor(
public _id?: string,
public cellName?: string,
public nomVolt?: number,
public nomCap?: number,
public manufacturer?: string,
public cellQuantity?: number,
public batchNo?: string,
public type?: string,
public formFactor?: string,
public cellChemistry?: string,
public nomCurr?: number,
public maxVolt?: number,
public minVolt?: number
) {}
}