-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementation of Workflow API (#100)
* Removed git excl. file * First implementation of full Workflow functionality * Final workflow implementation, tested and ready * Update src/main/java/com/bynder/sdk/service/BynderClientImpl.java * Update src/main/java/com/bynder/sdk/service/BynderClient.java * format WorkflowService Co-authored-by: Alfredo Navarro <alfredo.navarro@redbull.com> Co-authored-by: Arpit Sharma <32858287+Arpit-Sharma-USC@users.noreply.github.com> Co-authored-by: Arpit-Sharma-USC <arpitshrm07@gmail.com>
- Loading branch information
1 parent
170a564
commit 7483835
Showing
40 changed files
with
2,253 additions
and
28 deletions.
There are no files selected for viewing
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
/* | ||
* Copyright (c) 2017 Bynder B.V. All rights reserved. | ||
* | ||
* Licensed under the MIT License. See LICENSE file in the project root for full license | ||
* information. | ||
*/ | ||
package com.bynder.sdk.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* This represents a Bynder User | ||
*/ | ||
public class User { | ||
|
||
/** | ||
* Id of the user logged in. | ||
*/ | ||
private String userId; | ||
/** | ||
* Token key returned by API. | ||
*/ | ||
private String tokenKey; | ||
/** | ||
* Token secret returned by API. | ||
*/ | ||
private String tokenSecret; | ||
/** | ||
* True if access was given to the username/password pair. | ||
*/ | ||
@SerializedName(value = "access") | ||
private Boolean hasAccess; | ||
|
||
private String id; | ||
|
||
@SerializedName(value = "username") | ||
private String userName; | ||
|
||
private String name; | ||
|
||
private String email; | ||
|
||
private String email2; | ||
|
||
@SerializedName(value = "active") | ||
private Boolean isActive; | ||
|
||
private String profileId; | ||
|
||
private String lastLogin; | ||
|
||
private String firstName; | ||
|
||
private String lastName; | ||
|
||
private String infix; | ||
|
||
public String getUserId() { | ||
return userId; | ||
} | ||
|
||
public String getTokenKey() { | ||
return tokenKey; | ||
} | ||
|
||
public String getTokenSecret() { | ||
return tokenSecret; | ||
} | ||
|
||
public Boolean hasAccess() { | ||
return hasAccess; | ||
} | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getUserName() { | ||
return userName; | ||
} | ||
|
||
public void setUserName(String userName) { | ||
this.userName = userName; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getEmail() { | ||
return email; | ||
} | ||
|
||
public void setEmail(String email) { | ||
this.email = email; | ||
} | ||
|
||
public String getEmail2() { | ||
return email2; | ||
} | ||
|
||
public void setEmail2(String email2) { | ||
this.email2 = email2; | ||
} | ||
|
||
public Boolean getIsActive() { | ||
return isActive; | ||
} | ||
|
||
public void setIsActive(Boolean isActive) { | ||
this.isActive = isActive; | ||
} | ||
|
||
public String getProfileId() { | ||
return profileId; | ||
} | ||
|
||
public void setProfileId(String profileId) { | ||
this.profileId = profileId; | ||
} | ||
|
||
public String getLastLogin() { | ||
return lastLogin; | ||
} | ||
|
||
public void setLastLogin(String lastLogin) { | ||
this.lastLogin = lastLogin; | ||
} | ||
|
||
public String getFirstName() { | ||
return firstName; | ||
} | ||
|
||
public void setFirstName(String firstName) { | ||
this.firstName = firstName; | ||
} | ||
|
||
public String getLastName() { | ||
return lastName; | ||
} | ||
|
||
public void setLastName(String lastName) { | ||
this.lastName = lastName; | ||
} | ||
|
||
public String getInfix() { | ||
return infix; | ||
} | ||
|
||
public void setInfix(String infix) { | ||
this.infix = infix; | ||
} | ||
} |
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,94 @@ | ||
/* | ||
* Copyright (c) 2019 Bynder B.V. All rights reserved. | ||
* | ||
* Licensed under the MIT License. See LICENSE file in the project root for full license | ||
* information. | ||
*/ | ||
package com.bynder.sdk.model.workflow; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.util.Map; | ||
|
||
public class Campaign { | ||
|
||
@SerializedName(value = "ID") | ||
private String id; | ||
|
||
private String name; | ||
|
||
private String key; | ||
|
||
private String description; | ||
|
||
@SerializedName(value = "accountID") | ||
private String accountId; | ||
|
||
private String dateCreated; | ||
|
||
@SerializedName(value = "createdByID") | ||
private String createdById; | ||
|
||
private String dateModified; | ||
|
||
@SerializedName(value = "responsibleID") | ||
private String responsibleId; | ||
|
||
private Boolean closed; | ||
|
||
private String dateStart; | ||
|
||
private String deadline; | ||
|
||
@SerializedName(value = "presetID") | ||
private String presetID; | ||
|
||
@SerializedName(value = "thumbnailURL") | ||
private String thumbnailUrl; | ||
|
||
private Map<String, String> campaignMetaproperties; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public String getKey() { | ||
return key; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public String getDateCreated() { | ||
return dateCreated; | ||
} | ||
|
||
public String getDateModified() { | ||
return dateModified; | ||
} | ||
|
||
public Boolean getClosed() { | ||
return closed; | ||
} | ||
|
||
public String getDateStart() { | ||
return dateStart; | ||
} | ||
|
||
public String getDeadline() { | ||
return deadline; | ||
} | ||
|
||
public Map<String, String> getCampaignMetaproperties() { | ||
return campaignMetaproperties; | ||
} | ||
|
||
public String getResponsibleId() { | ||
return responsibleId; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/bynder/sdk/model/workflow/CampaignId.java
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,16 @@ | ||
/* | ||
* Copyright (c) 2019 Bynder B.V. All rights reserved. | ||
* | ||
* Licensed under the MIT License. See LICENSE file in the project root for full license | ||
* information. | ||
*/ | ||
package com.bynder.sdk.model.workflow; | ||
|
||
public class CampaignId { | ||
|
||
private String id; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
} |
Oops, something went wrong.