Skip to content

Commit

Permalink
[TASK] implemented position-info model
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisBurger committed Jan 21, 2022
1 parent 40c2792 commit 3f7769d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions src/models/PositionInfo.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* The position info interface used for
* displaying data.
*/
export interface PositionInfoInterface {
/**
* The country of the position info
*/
country: {
/**
* The name of the country
*/
name: string;
/**
* The cc of the country
*/
cc: string;
/**
* The alpha3 of the country
*/
alpha3: string;
}
/**
* The timezone of the country
*/
timezone: string;
}

class PositionInfo {

private positionInfoData: PositionInfoInterface;

constructor(data: PositionInfoInterface) {
this.positionInfoData = data;
}
}

export default PositionInfo;

0 comments on commit 3f7769d

Please sign in to comment.