Class UsersSetPhotoRequest
- java.lang.Object
-
- com.slack.api.methods.request.users.UsersSetPhotoRequest
-
- All Implemented Interfaces:
SlackApiRequest
public class UsersSetPhotoRequest extends Object implements SlackApiRequest
Set the user profile photo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UsersSetPhotoRequest.UsersSetPhotoRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsersSetPhotoRequest.UsersSetPhotoRequestBuilder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
Integer
getCropW()
Width/height of crop box (always square)Integer
getCropX()
X coordinate of top-left corner of crop boxInteger
getCropY()
Y coordinate of top-left corner of crop boxFile
getImage()
File contents via `multipart/form-data`.byte[]
getImageData()
String
getToken()
Authentication token.int
hashCode()
void
setCropW(Integer cropW)
Width/height of crop box (always square)void
setCropX(Integer cropX)
X coordinate of top-left corner of crop boxvoid
setCropY(Integer cropY)
Y coordinate of top-left corner of crop boxvoid
setImage(File image)
File contents via `multipart/form-data`.void
setImageData(byte[] imageData)
void
setToken(String token)
Authentication token.String
toString()
-
-
-
Method Detail
-
builder
public static UsersSetPhotoRequest.UsersSetPhotoRequestBuilder builder()
-
getToken
public String getToken()
Authentication token. Requires scope: `users.profile:write`- Specified by:
getToken
in interfaceSlackApiRequest
-
getImage
public File getImage()
File contents via `multipart/form-data`.
-
getImageData
public byte[] getImageData()
-
getCropX
public Integer getCropX()
X coordinate of top-left corner of crop box
-
getCropY
public Integer getCropY()
Y coordinate of top-left corner of crop box
-
getCropW
public Integer getCropW()
Width/height of crop box (always square)
-
setToken
public void setToken(String token)
Authentication token. Requires scope: `users.profile:write`
-
setImage
public void setImage(File image)
File contents via `multipart/form-data`.
-
setImageData
public void setImageData(byte[] imageData)
-
setCropX
public void setCropX(Integer cropX)
X coordinate of top-left corner of crop box
-
setCropY
public void setCropY(Integer cropY)
Y coordinate of top-left corner of crop box
-
setCropW
public void setCropW(Integer cropW)
Width/height of crop box (always square)
-
canEqual
protected boolean canEqual(Object other)
-
-