All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.symphony.api.model.V2MemberInfo Maven / Gradle / Ivy

package com.symphony.api.model;

import com.symphony.api.model.V2MemberUserDetail;
import io.swagger.v3.oas.annotations.media.Schema;

import io.swagger.v3.oas.annotations.media.Schema;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fasterxml.jackson.annotation.JsonCreator;

/**
  * Detailed membership record.
 **/
@Schema(description="Detailed membership record.")
public class V2MemberInfo   {
  
  @Schema(description = "")
  private V2MemberUserDetail user = null;
  
  @Schema(description = "true if this is an owner of the room")
 /**
   * true if this is an owner of the room  
  **/
  private Boolean isOwner = null;
  
  @Schema(description = "true if this is the creator of the room")
 /**
   * true if this is the creator of the room  
  **/
  private Boolean isCreator = null;
  
  @Schema(description = "unix timestamp for join date")
 /**
   * unix timestamp for join date  
  **/
  private Long joinDate = null;
 /**
   * Get user
   * @return user
  **/
  @JsonProperty("user")
  public V2MemberUserDetail getUser() {
    return user;
  }

  public void setUser(V2MemberUserDetail user) {
    this.user = user;
  }

  public V2MemberInfo user(V2MemberUserDetail user) {
    this.user = user;
    return this;
  }

 /**
   * true if this is an owner of the room
   * @return isOwner
  **/
  @JsonProperty("isOwner")
  public Boolean isIsOwner() {
    return isOwner;
  }

  public void setIsOwner(Boolean isOwner) {
    this.isOwner = isOwner;
  }

  public V2MemberInfo isOwner(Boolean isOwner) {
    this.isOwner = isOwner;
    return this;
  }

 /**
   * true if this is the creator of the room
   * @return isCreator
  **/
  @JsonProperty("isCreator")
  public Boolean isIsCreator() {
    return isCreator;
  }

  public void setIsCreator(Boolean isCreator) {
    this.isCreator = isCreator;
  }

  public V2MemberInfo isCreator(Boolean isCreator) {
    this.isCreator = isCreator;
    return this;
  }

 /**
   * unix timestamp for join date
   * @return joinDate
  **/
  @JsonProperty("joinDate")
  public Long getJoinDate() {
    return joinDate;
  }

  public void setJoinDate(Long joinDate) {
    this.joinDate = joinDate;
  }

  public V2MemberInfo joinDate(Long joinDate) {
    this.joinDate = joinDate;
    return this;
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class V2MemberInfo {\n");
    
    sb.append("    user: ").append(toIndentedString(user)).append("\n");
    sb.append("    isOwner: ").append(toIndentedString(isOwner)).append("\n");
    sb.append("    isCreator: ").append(toIndentedString(isCreator)).append("\n");
    sb.append("    joinDate: ").append(toIndentedString(joinDate)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private static String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy