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
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 Details
-
builder
-
getToken
Authentication token. Requires scope: `users.profile:write`- Specified by:
getTokenin interfaceSlackApiRequest
-
getImage
File contents via `multipart/form-data`. -
getImageData
public byte[] getImageData() -
getCropX
X coordinate of top-left corner of crop box -
getCropY
Y coordinate of top-left corner of crop box -
getCropW
Width/height of crop box (always square) -
setToken
Authentication token. Requires scope: `users.profile:write` -
setImage
File contents via `multipart/form-data`. -
setImageData
public void setImageData(byte[] imageData) -
setCropX
X coordinate of top-left corner of crop box -
setCropY
Y coordinate of top-left corner of crop box -
setCropW
Width/height of crop box (always square) -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-