{"id":22864541,"url":"https://github.com/darcdev/flickr-entities-typescript","last_synced_at":"2026-06-17T21:02:09.091Z","repository":{"id":117531304,"uuid":"326060603","full_name":"darcdev/Flickr-Entities-Typescript","owner":"darcdev","description":"Define entities in typescript  🔘☄","archived":false,"fork":false,"pushed_at":"2021-01-04T20:20:04.000Z","size":13348,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T09:45:03.959Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darcdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-01T21:41:47.000Z","updated_at":"2021-01-04T20:20:06.000Z","dependencies_parsed_at":"2023-07-04T23:26:28.623Z","dependency_job_id":null,"html_url":"https://github.com/darcdev/Flickr-Entities-Typescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/darcdev/Flickr-Entities-Typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darcdev%2FFlickr-Entities-Typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darcdev%2FFlickr-Entities-Typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darcdev%2FFlickr-Entities-Typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darcdev%2FFlickr-Entities-Typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darcdev","download_url":"https://codeload.github.com/darcdev/Flickr-Entities-Typescript/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darcdev%2FFlickr-Entities-Typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34465322,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-17T02:00:05.408Z","response_time":127,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-13T11:28:23.106Z","updated_at":"2026-06-17T21:02:09.071Z","avatar_url":"https://github.com/darcdev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flickr Entities\n\n![typescript](https://emojis.slackmojis.com/emojis/images/1479745458/1383/typescript.png?1479745458)\n\n#### Define Flickr entities using Typescript Language\n\n## Enum\n\n### PhotoOrientation\n\n```ts\nenum PhotoOrientation {\n  Landscape,\n  Portrait,\n  Square,\n  Panorama,\n}\n```\n\n## Entities\n\n### Item\n\n```ts\nclass Item {\n  constructor(public readonly id: number, protected title: string) {}\n}\n```\n\n### Picture\n\n```ts\nclass Picture extends Item {\n  public constructor(\n    id: number,\n    title: string,\n    private _date: string,\n    private _orientation: PhotoOrientation\n  ) {\n    super(id, title);\n  }\n  public toString() {}\n}\n```\n\n### Album\n\n```ts\nclass Album extends Item {\n  private pictures: Picture[];\n\n  public constructor(id: number, title: string) {\n    super(id, title);\n    this.pictures = [];\n  }\n  public addPicture(picture: Picture) {}\n}\n```\n\n### User\n\n```ts\nclass User {\n  private album: Album[];\n\n  constructor(\n    private id: number,\n    private username: string,\n    private firstName: string,\n    private isPro: boolean\n  ) {\n    this.album = [];\n  }\n\n  addAlbum(album: Album) {}\n\n  removeAlbum(album: Album): Album | undefined {}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarcdev%2Fflickr-entities-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarcdev%2Fflickr-entities-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarcdev%2Fflickr-entities-typescript/lists"}