Spaces:
Sleeping
Sleeping
File size: 778 Bytes
bb5169d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
package com.krishna.dto;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.UUID;
public class PostUpdateDTO {
private String content;
@JsonProperty("image_url")
private String imageUrl;
@JsonProperty("userId")
private UUID userId;
public PostUpdateDTO( String content, String imageUrl) {
this.content = content;
this.imageUrl = imageUrl;
}
public String getContent() { return content; }
public void setContent(String content) { this.content = content; }
public String getImageUrl() { return imageUrl; }
public void setImageUrl(String imageUrl) { this.imageUrl = imageUrl; }
public UUID getUserId() { return userId; }
public void setUserId(UUID userId) { this.userId = userId; }
}
|