-
Notifications
You must be signed in to change notification settings - Fork 250
Add basic View support - List the Views; List the tickets in a View #491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Add basic View support - List the Views; List the tickets in a View
Provide basic functionality for views. Support getting a list of the Views. Then, using the view id, we can get a list of the Tickets in the View.
- Loading branch information
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,142 @@ | ||
package org.zendesk.client.v2.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
import java.io.Serializable; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class View implements Serializable { | ||
|
||
<<<<<<< HEAD | ||
private static final long serialVersionUID = 1L; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's probably better to generate a random number. (IDEs are generally proposing it) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed. |
||
======= | ||
private static final long serialVersionUID = 8162172428393948830L; | ||
|
||
>>>>>>> 954b71b... Add basic View support - List the Views; List the tickets in a View | ||
private long id; | ||
private String title; | ||
private boolean active; | ||
private String updatedAt; | ||
private String createdAt; | ||
private long position; | ||
private String description; | ||
private Conditions conditions; | ||
private boolean watchable; | ||
<<<<<<< HEAD | ||
private String rawTitle; | ||
======= | ||
>>>>>>> 954b71b... Add basic View support - List the Views; List the tickets in a View | ||
|
||
public void setId(long id) { | ||
this.id = id; | ||
} | ||
|
||
@JsonProperty("id") | ||
public long getId() { | ||
return this.id; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
@JsonProperty("title") | ||
public String getTitle() { | ||
return this.title; | ||
} | ||
|
||
public void setActive(boolean active) { | ||
this.active = active; | ||
} | ||
|
||
@JsonProperty("active") | ||
public boolean getActive() { | ||
return this.active; | ||
} | ||
|
||
public void setUpdatedAt(String updatedAt) { | ||
this.updatedAt = updatedAt; | ||
} | ||
|
||
@JsonProperty("updated_at") | ||
public String getUpdatedAt() { | ||
return this.updatedAt; | ||
} | ||
|
||
public void setCreatedAt(String createdAt) { | ||
this.createdAt = createdAt; | ||
} | ||
|
||
@JsonProperty("created_at") | ||
public String getCreatedAt() { | ||
return this.createdAt; | ||
} | ||
|
||
public void setPosition(long position) { | ||
this.position = position; | ||
} | ||
|
||
@JsonProperty("position") | ||
public long getPosition() { | ||
return this.position; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
@JsonProperty("description") | ||
public String getDescription() { | ||
return this.description; | ||
} | ||
|
||
public void setConditions(Conditions conditions) { | ||
this.conditions = conditions; | ||
} | ||
|
||
@JsonProperty("conditions") | ||
public Conditions getConditions() { | ||
return this.conditions; | ||
} | ||
|
||
public void setWatchable(boolean watchable) { | ||
this.watchable = watchable; | ||
} | ||
|
||
@JsonProperty("watchable") | ||
public boolean getWatchable() { | ||
return this.watchable; | ||
} | ||
|
||
<<<<<<< HEAD | ||
public void setRawTitle(String rawTitle) { | ||
this.rawTitle = rawTitle; | ||
} | ||
|
||
@JsonProperty("raw_title") | ||
public String getRawTitle() { | ||
return this.rawTitle; | ||
} | ||
|
||
======= | ||
>>>>>>> 954b71b... Add basic View support - List the Views; List the tickets in a View | ||
//TODO: fix this. | ||
public String toString() { | ||
return "View " + | ||
"{id=" + id + | ||
", title=" + title + | ||
", active=" + active + | ||
", updatedAt=" + updatedAt + | ||
", createdAt=" + createdAt + | ||
", position=" + position + | ||
", description=" + description + | ||
", conditions=" + conditions + | ||
", watchable=" + watchable + | ||
<<<<<<< HEAD | ||
", rawTitle=" + rawTitle + | ||
======= | ||
>>>>>>> 954b71b... Add basic View support - List the Views; List the tickets in a View | ||
"}"; | ||
} | ||
} |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not required in the PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replaced old value.