File

src/app/classes/event.ts

Description

Event class

Example

Index

Properties

Constructor

constructor(eventData: any)

Constructor

Parameters :
Name Type Optional Description
eventData any

Properties

date
date: string
Type : string

Date

deleted
deleted: boolean
Type : boolean

I sdeleted

description
description: string
Type : string

Description

id
id: string
Type : string

ID

location
location: string
Type : string

Location

name
name: string
Type : string

Name

password
password: string
Type : string

Password

photographerUid
photographerUid: string
Type : string

Photographer UID

public
public: boolean
Type : boolean

Public

ratings
ratings: number
Type : number

Ratings

export class Event {
  /** Date */
  date: string;
  /** Description */
  description?: string;
  /** ID */
  id: string;
  /** Location */
  location: string;
  /** Name */
  name: string;
  /** Password */
  password?: string;
  /** Photographer UID */
  photographerUid: string;
  /** Public */
  public: boolean;
  /** Ratings */
  ratings: number;
  /** I sdeleted */
  deleted: boolean;

  /**
   * Constructor
   * @param  {any} eventData
   */
  constructor(eventData: any) {
    this.date = eventData.date;
    this.description = '';
    this.id = eventData.id;
    this.location = eventData.location;
    this.name = eventData.name;
    this.password = null;
    this.photographerUid = eventData.photographerUid;
    this.public = false;
    this.ratings = 0;
    this.deleted = false;
  }
}

results matching ""

    No results matching ""