public class WarResponse extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
SERIALIZED_NAME_AGGRESSOR |
static String |
SERIALIZED_NAME_ALLIES |
static String |
SERIALIZED_NAME_DECLARED |
static String |
SERIALIZED_NAME_DEFENDER |
static String |
SERIALIZED_NAME_FINISHED |
static String |
SERIALIZED_NAME_ID |
static String |
SERIALIZED_NAME_MUTUAL |
static String |
SERIALIZED_NAME_OPEN_FOR_ALLIES |
static String |
SERIALIZED_NAME_RETRACTED |
static String |
SERIALIZED_NAME_STARTED |
| Constructor and Description |
|---|
WarResponse() |
| Modifier and Type | Method and Description |
|---|---|
WarResponse |
addAlliesItem(WarAlly alliesItem) |
WarResponse |
aggressor(Aggressor aggressor) |
WarResponse |
allies(List<WarAlly> allies) |
WarResponse |
declared(java.time.OffsetDateTime declared) |
WarResponse |
defender(Defender defender) |
boolean |
equals(Object o) |
WarResponse |
finished(java.time.OffsetDateTime finished) |
Aggressor |
getAggressor()
Get aggressor
|
List<WarAlly> |
getAllies()
allied corporations or alliances, each object contains either
corporation_id or alliance_id
|
java.time.OffsetDateTime |
getDeclared()
Time that the war was declared
|
Defender |
getDefender()
Get defender
|
java.time.OffsetDateTime |
getFinished()
Time the war ended and shooting was no longer allowed
|
Integer |
getId()
ID of the specified war
|
Boolean |
getMutual()
Was the war declared mutual by both parties
|
Boolean |
getOpenForAllies()
Is the war currently open for allies or not
|
java.time.OffsetDateTime |
getRetracted()
Time the war was retracted but both sides could still shoot each other
|
java.time.OffsetDateTime |
getStarted()
Time when the war started and both sides could shoot each other
|
int |
hashCode() |
WarResponse |
id(Integer id) |
WarResponse |
mutual(Boolean mutual) |
WarResponse |
openForAllies(Boolean openForAllies) |
WarResponse |
retracted(java.time.OffsetDateTime retracted) |
void |
setAggressor(Aggressor aggressor) |
void |
setAllies(List<WarAlly> allies) |
void |
setDeclared(java.time.OffsetDateTime declared) |
void |
setDefender(Defender defender) |
void |
setFinished(java.time.OffsetDateTime finished) |
void |
setId(Integer id) |
void |
setMutual(Boolean mutual) |
void |
setOpenForAllies(Boolean openForAllies) |
void |
setRetracted(java.time.OffsetDateTime retracted) |
void |
setStarted(java.time.OffsetDateTime started) |
WarResponse |
started(java.time.OffsetDateTime started) |
String |
toString() |
public static final String SERIALIZED_NAME_AGGRESSOR
public static final String SERIALIZED_NAME_ALLIES
public static final String SERIALIZED_NAME_DECLARED
public static final String SERIALIZED_NAME_DEFENDER
public static final String SERIALIZED_NAME_FINISHED
public static final String SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_MUTUAL
public static final String SERIALIZED_NAME_OPEN_FOR_ALLIES
public static final String SERIALIZED_NAME_RETRACTED
public static final String SERIALIZED_NAME_STARTED
public WarResponse aggressor(Aggressor aggressor)
public Aggressor getAggressor()
public void setAggressor(Aggressor aggressor)
public WarResponse allies(List<WarAlly> allies)
public WarResponse addAlliesItem(WarAlly alliesItem)
@Nullable public List<WarAlly> getAllies()
public WarResponse declared(java.time.OffsetDateTime declared)
public java.time.OffsetDateTime getDeclared()
public void setDeclared(java.time.OffsetDateTime declared)
public WarResponse defender(Defender defender)
public Defender getDefender()
public void setDefender(Defender defender)
public WarResponse finished(java.time.OffsetDateTime finished)
@Nullable public java.time.OffsetDateTime getFinished()
public void setFinished(java.time.OffsetDateTime finished)
public WarResponse id(Integer id)
public Integer getId()
public void setId(Integer id)
public WarResponse mutual(Boolean mutual)
public Boolean getMutual()
public void setMutual(Boolean mutual)
public WarResponse openForAllies(Boolean openForAllies)
public Boolean getOpenForAllies()
public void setOpenForAllies(Boolean openForAllies)
public WarResponse retracted(java.time.OffsetDateTime retracted)
@Nullable public java.time.OffsetDateTime getRetracted()
public void setRetracted(java.time.OffsetDateTime retracted)
public WarResponse started(java.time.OffsetDateTime started)
@Nullable public java.time.OffsetDateTime getStarted()
public void setStarted(java.time.OffsetDateTime started)
Copyright © 2020. All Rights Reserved.