Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Index

Constructors

constructor

  • new Offer(description?: string, title?: string, imageUrl?: string, worth?: string, tags?: Map<string, string>, compare?: Map<string, string>, rules?: Map<string, CompareAction>, offerPrices?: Array<OfferPrice>): Offer
  • Parameters

    • Default value description: string = ""
    • Default value title: string = ""
    • Default value imageUrl: string = ""
    • Default value worth: string = "0"
    • Default value tags: Map<string, string> = new Map()
    • Default value compare: Map<string, string> = new Map()
    • Default value rules: Map<string, CompareAction> = new Map()
    • Default value offerPrices: Array<OfferPrice> = new Array<OfferPrice>()

    Returns Offer

Properties

compare

compare: Map<string, string>

createdAt

createdAt: Date = new Date()

description

description: string

id

id: number = 0

imageUrl

imageUrl: string

offerPrices

offerPrices: OfferPrice[] = new Array<OfferPrice>()

owner

owner: string = "0x0"

rules

rules: Map<string, CompareAction>

tags

tags: Map<string, string>

title

title: string

updatedAt

updatedAt: Date = new Date()

worth

worth: string

Methods

copy

Protected deepCopyFromJson

  • deepCopyFromJson(): Offer

Protected getClass

getPriceById

  • getPriceById(id: number): OfferPrice | undefined

toJson

  • toJson(): object

validPrices

  • validPrices(data: Map<string, string>): Array<OfferPrice>

Static fromJson

  • fromJson(json: object): Offer

Generated using TypeDoc