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
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 Details
-
builder
-
getToken
Authentication token. Requires scope: `users.profile:write`- Specified by:
getToken
in 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
-