package ch.viascom.hipchat.api.models.message;

import ch.viascom.hipchat.api.models.message.links.MessageLinkContent;
import com.google.gson.annotations.SerializedName;
import lombok.Data;

/**
 * Created by patrickboesch on 21.04.16.
 */
@Data
public class MessageLink {
    private MessageLinkType type;
    private String url;
    @SerializedName(value = "link", alternate = {"image", "video", "link", "twitter_status", "twitter_user"})
    private MessageLinkContent content;
}

@@ -353,20 +353,21 @@
 alue = %22
-link
+image
 %22, alter
@@ -374,25 +374,16 @@
 nate = %7B
-%22image%22, 
 %22video%22,

Fix @SerializedName