SierraSystems/ntt-data-notification-service

View on GitHub
src/main/java/com/nttdata/nttdatanotificationservice/teams/models/TeamsAction.java

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
package com.nttdata.nttdatanotificationservice.teams.models;

import com.google.gson.annotations.SerializedName;

public class TeamsAction {
  @SerializedName("@type")
  private String type;
  private String name;
  private String target;
  private String body;

  private TeamsAction(String defaultType, String name, String target) {
    this.type = defaultType;
    this.name = name;
    this.target = target;
  }


  public String getType() {
    return type;
  }

  public String getName() {
    return name;
  }

  public String getTarget() {
    return target;
  }

  public String getBody() {
    return body;
  }

  public void setBody(String body) {
    this.body = body;
  }

  public static TeamsAction defaultTeamAction(String type, String name, String target) {
    return new TeamsAction(type, name, target);
  }

}