-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds highlights to projects response (#51)
* Adds highlights to projects response * update a to an * Use docker for build stage * Tweak * Reran make build after merging in pc/docker branch * Add icon_url Co-authored-by: Paul Cothenet <[email protected]>
- Loading branch information
Showing
7 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
/** | ||
* Patch API V1 | ||
* The core API used to integrate with Patch's service | ||
* | ||
* Contact: [email protected] | ||
*/ | ||
|
||
import ApiClient from '../ApiClient'; | ||
|
||
class Highlight { | ||
constructor(slug, title, iconUrl) { | ||
Highlight.initialize(this, slug, title, iconUrl); | ||
} | ||
|
||
static initialize(obj, slug, title, iconUrl) { | ||
obj['slug'] = slug; | ||
obj['title'] = title; | ||
obj['icon_url'] = iconUrl; | ||
} | ||
|
||
static constructFromObject(data, obj) { | ||
if (data) { | ||
obj = obj || new Highlight(); | ||
|
||
if (data.hasOwnProperty('slug')) { | ||
obj['slug'] = ApiClient.convertToType(data['slug'], 'String'); | ||
} | ||
|
||
if (data.hasOwnProperty('title')) { | ||
obj['title'] = ApiClient.convertToType(data['title'], 'String'); | ||
} | ||
|
||
if (data.hasOwnProperty('icon_url')) { | ||
obj['icon_url'] = ApiClient.convertToType(data['icon_url'], 'String'); | ||
} | ||
} | ||
return obj; | ||
} | ||
} | ||
|
||
Highlight.prototype['slug'] = undefined; | ||
|
||
Highlight.prototype['title'] = undefined; | ||
|
||
Highlight.prototype['icon_url'] = undefined; | ||
|
||
export default Highlight; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters