Skip to content

Instantly share code, notes, and snippets.

@rpinna

rpinna/order.ts Secret

Last active September 21, 2018 05:33
Show Gist options
  • Save rpinna/b97f8505940f255e8ebbd9a17c76f3ea to your computer and use it in GitHub Desktop.
Save rpinna/b97f8505940f255e8ebbd9a17c76f3ea to your computer and use it in GitHub Desktop.
@IronEncrypt({dataClassId = 'top-secret'})
export class Order {
public date = new Date();
constructor(
public title: string,
public message: string,
public id?: number
) {
this.id = id || Utils.randomInt();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment