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 classUsersSetPhotoRequest.UsersSetPhotoRequestBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UsersSetPhotoRequest.UsersSetPhotoRequestBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)IntegergetCropW()Width/height of crop box (always square)IntegergetCropX()X coordinate of top-left corner of crop boxIntegergetCropY()Y coordinate of top-left corner of crop boxFilegetImage()File contents via `multipart/form-data`.byte[]getImageData()StringgetToken()Authentication token.inthashCode()voidsetCropW(Integer cropW)Width/height of crop box (always square)voidsetCropX(Integer cropX)X coordinate of top-left corner of crop boxvoidsetCropY(Integer cropY)Y coordinate of top-left corner of crop boxvoidsetImage(File image)File contents via `multipart/form-data`.voidsetImageData(byte[] imageData)voidsetToken(String token)Authentication token.StringtoString()
-
-
-
Method Detail
-
builder
public static UsersSetPhotoRequest.UsersSetPhotoRequestBuilder builder()
-
getToken
public String getToken()
Authentication token. Requires scope: `users.profile:write`- Specified by:
getTokenin 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)
-
-