com.podio.share.Share Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official Java wrapper for the Podio API
package com.podio.share;
import org.codehaus.jackson.annotate.JsonProperty;
import org.joda.time.DateTime;
import com.podio.common.Role;
import com.podio.contact.ProfileMini;
public class Share {
/**
* The user the object was share with
*/
private ProfileMini user;
/**
* The role the user has to the object
*/
private Role role;
/**
* The date and time the object was shared
*/
private DateTime grantedOn;
/**
* The user who shared the item
*/
private ProfileMini grantedBy;
public ProfileMini getUser() {
return user;
}
public void setUser(ProfileMini user) {
this.user = user;
}
public Role getRole() {
return role;
}
public void setRole(Role role) {
this.role = role;
}
@JsonProperty("granted_on")
public DateTime getGrantedOn() {
return grantedOn;
}
@JsonProperty("granted_on")
public void setGrantedOn(DateTime grantedOn) {
this.grantedOn = grantedOn;
}
@JsonProperty("granted_by")
public ProfileMini getGrantedBy() {
return grantedBy;
}
@JsonProperty("granted_by")
public void setGrantedBy(ProfileMini grantedBy) {
this.grantedBy = grantedBy;
}
}