package net.kwmt27.codesearch.entity.events;

import com.google.gson.annotations.SerializedName;

import net.kwmt27.codesearch.entity.EventEntity;
import net.kwmt27.codesearch.entity.payloads.TeamAddEntity;

public class TeamAddEvent extends EventEntity {

    @SerializedName("payload")
    private TeamAddEntity mTeamAddEntity;

//    @Override
//    public void action(TextView view, ClickableSpan clickableSpan) {
//        String repoName = getRepo().getName();
//        String action = this.getClass().getSimpleName().replace("Event", "").toLowerCase() + "ed " + repoName; // TODO
//        view.setText(action);
//        TextViewUtil.addLink(view, repoName, clickableSpan);
//    }

}

@@ -205,490 +205,321 @@
 y;%0A%0A
-public class TeamAddEvent extends EventEntity %7B%0A%0A    @SerializedName(%22payload%22)%0A    private TeamAddEntity mTeamAddEntity;%0A%0A//    @Override%0A//    public void action(TextView view, ClickableSpan clickableSpan) %7B%0A//        String repoName = getRepo().getName();%0A//        String action = this.getClass().getSimpleName().replace(%22Event%22, %22%22).toLowerCase() + %22ed %22 + repoName; // TODO%0A//        view.setText(action);%0A//        TextViewUtil.addLink(view, repoName, clickableSpan);%0A//    %7D
+/**%0A * https://developer.github.com/v3/activity/events/types/#teamaddevent%0A *%0A * @deprecated Events of this type are not visible in timelines. These events are only used to trigger hooks.%0A */%0Apublic class TeamAddEvent extends EventEntity %7B%0A%0A    @SerializedName(%22payload%22)%0A    private TeamAddEntity mTeamAddEntity;
 %0A%0A%7D%0A

add comment