Class UsersSetPhotoRequest

java.lang.Object
com.slack.api.methods.request.users.UsersSetPhotoRequest
All Implemented Interfaces:
SlackApiRequest

public class UsersSetPhotoRequest
extends java.lang.Object
implements SlackApiRequest
Set the user profile photo
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Class Description
    static class  UsersSetPhotoRequest.UsersSetPhotoRequestBuilder  
  • Method Summary

    Modifier and Type Method Description
    static UsersSetPhotoRequest.UsersSetPhotoRequestBuilder builder()  
    protected boolean canEqual​(java.lang.Object other)  
    boolean equals​(java.lang.Object o)  
    java.lang.Integer getCropW()
    Width/height of crop box (always square)
    java.lang.Integer getCropX()
    X coordinate of top-left corner of crop box
    java.lang.Integer getCropY()
    Y coordinate of top-left corner of crop box
    java.io.File getImage()
    File contents via `multipart/form-data`.
    byte[] getImageData()  
    java.lang.String getToken()
    Authentication token.
    int hashCode()  
    void setCropW​(java.lang.Integer cropW)
    Width/height of crop box (always square)
    void setCropX​(java.lang.Integer cropX)
    X coordinate of top-left corner of crop box
    void setCropY​(java.lang.Integer cropY)
    Y coordinate of top-left corner of crop box
    void setImage​(java.io.File image)
    File contents via `multipart/form-data`.
    void setImageData​(byte[] imageData)  
    void setToken​(java.lang.String token)
    Authentication token.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Method Details

    • builder

    • getToken

      public java.lang.String getToken()
      Authentication token. Requires scope: `users.profile:write`
      Specified by:
      getToken in interface SlackApiRequest
    • getImage

      public java.io.File getImage()
      File contents via `multipart/form-data`.
    • getImageData

      public byte[] getImageData()
    • getCropX

      public java.lang.Integer getCropX()
      X coordinate of top-left corner of crop box
    • getCropY

      public java.lang.Integer getCropY()
      Y coordinate of top-left corner of crop box
    • getCropW

      public java.lang.Integer getCropW()
      Width/height of crop box (always square)
    • setToken

      public void setToken​(java.lang.String token)
      Authentication token. Requires scope: `users.profile:write`
    • setImage

      public void setImage​(java.io.File image)
      File contents via `multipart/form-data`.
    • setImageData

      public void setImageData​(byte[] imageData)
    • setCropX

      public void setCropX​(java.lang.Integer cropX)
      X coordinate of top-left corner of crop box
    • setCropY

      public void setCropY​(java.lang.Integer cropY)
      Y coordinate of top-left corner of crop box
    • setCropW

      public void setCropW​(java.lang.Integer cropW)
      Width/height of crop box (always square)
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • canEqual

      protected boolean canEqual​(java.lang.Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object