Package net.troja.eve.esi.model
Class WarResponse
- java.lang.Object
-
- net.troja.eve.esi.model.WarResponse
-
- All Implemented Interfaces:
Serializable
public class WarResponse extends Object implements Serializable
200 ok object- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_AGGRESSORstatic StringSERIALIZED_NAME_ALLIESstatic StringSERIALIZED_NAME_DECLAREDstatic StringSERIALIZED_NAME_DEFENDERstatic StringSERIALIZED_NAME_FINISHEDstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_MUTUALstatic StringSERIALIZED_NAME_OPEN_FOR_ALLIESstatic StringSERIALIZED_NAME_RETRACTEDstatic StringSERIALIZED_NAME_STARTED
-
Constructor Summary
Constructors Constructor Description WarResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WarResponseaddAlliesItem(WarAlly alliesItem)WarResponseaggressor(Aggressor aggressor)WarResponseallies(List<WarAlly> allies)WarResponsedeclared(java.time.OffsetDateTime declared)WarResponsedefender(Defender defender)booleanequals(Object o)WarResponsefinished(java.time.OffsetDateTime finished)AggressorgetAggressor()Get aggressorList<WarAlly>getAllies()allied corporations or alliances, each object contains either corporation_id or alliance_idjava.time.OffsetDateTimegetDeclared()Time that the war was declaredDefendergetDefender()Get defenderjava.time.OffsetDateTimegetFinished()Time the war ended and shooting was no longer allowedIntegergetId()ID of the specified warBooleangetMutual()Was the war declared mutual by both partiesBooleangetOpenForAllies()Is the war currently open for allies or notjava.time.OffsetDateTimegetRetracted()Time the war was retracted but both sides could still shoot each otherjava.time.OffsetDateTimegetStarted()Time when the war started and both sides could shoot each otherinthashCode()WarResponseid(Integer id)WarResponsemutual(Boolean mutual)WarResponseopenForAllies(Boolean openForAllies)WarResponseretracted(java.time.OffsetDateTime retracted)voidsetAggressor(Aggressor aggressor)voidsetAllies(List<WarAlly> allies)voidsetDeclared(java.time.OffsetDateTime declared)voidsetDefender(Defender defender)voidsetFinished(java.time.OffsetDateTime finished)voidsetId(Integer id)voidsetMutual(Boolean mutual)voidsetOpenForAllies(Boolean openForAllies)voidsetRetracted(java.time.OffsetDateTime retracted)voidsetStarted(java.time.OffsetDateTime started)WarResponsestarted(java.time.OffsetDateTime started)StringtoString()
-
-
-
Field Detail
-
SERIALIZED_NAME_AGGRESSOR
public static final String SERIALIZED_NAME_AGGRESSOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ALLIES
public static final String SERIALIZED_NAME_ALLIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DECLARED
public static final String SERIALIZED_NAME_DECLARED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DEFENDER
public static final String SERIALIZED_NAME_DEFENDER
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FINISHED
public static final String SERIALIZED_NAME_FINISHED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MUTUAL
public static final String SERIALIZED_NAME_MUTUAL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_OPEN_FOR_ALLIES
public static final String SERIALIZED_NAME_OPEN_FOR_ALLIES
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_RETRACTED
public static final String SERIALIZED_NAME_RETRACTED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STARTED
public static final String SERIALIZED_NAME_STARTED
- See Also:
- Constant Field Values
-
-
Method Detail
-
aggressor
public WarResponse aggressor(Aggressor aggressor)
-
getAggressor
public Aggressor getAggressor()
Get aggressor- Returns:
- aggressor
-
setAggressor
public void setAggressor(Aggressor aggressor)
-
allies
public WarResponse allies(List<WarAlly> allies)
-
addAlliesItem
public WarResponse addAlliesItem(WarAlly alliesItem)
-
getAllies
@Nullable public List<WarAlly> getAllies()
allied corporations or alliances, each object contains either corporation_id or alliance_id- Returns:
- allies
-
declared
public WarResponse declared(java.time.OffsetDateTime declared)
-
getDeclared
public java.time.OffsetDateTime getDeclared()
Time that the war was declared- Returns:
- declared
-
setDeclared
public void setDeclared(java.time.OffsetDateTime declared)
-
defender
public WarResponse defender(Defender defender)
-
getDefender
public Defender getDefender()
Get defender- Returns:
- defender
-
setDefender
public void setDefender(Defender defender)
-
finished
public WarResponse finished(java.time.OffsetDateTime finished)
-
getFinished
@Nullable public java.time.OffsetDateTime getFinished()
Time the war ended and shooting was no longer allowed- Returns:
- finished
-
setFinished
public void setFinished(java.time.OffsetDateTime finished)
-
id
public WarResponse id(Integer id)
-
getId
public Integer getId()
ID of the specified war- Returns:
- id
-
setId
public void setId(Integer id)
-
mutual
public WarResponse mutual(Boolean mutual)
-
getMutual
public Boolean getMutual()
Was the war declared mutual by both parties- Returns:
- mutual
-
setMutual
public void setMutual(Boolean mutual)
-
openForAllies
public WarResponse openForAllies(Boolean openForAllies)
-
getOpenForAllies
public Boolean getOpenForAllies()
Is the war currently open for allies or not- Returns:
- openForAllies
-
setOpenForAllies
public void setOpenForAllies(Boolean openForAllies)
-
retracted
public WarResponse retracted(java.time.OffsetDateTime retracted)
-
getRetracted
@Nullable public java.time.OffsetDateTime getRetracted()
Time the war was retracted but both sides could still shoot each other- Returns:
- retracted
-
setRetracted
public void setRetracted(java.time.OffsetDateTime retracted)
-
started
public WarResponse started(java.time.OffsetDateTime started)
-
getStarted
@Nullable public java.time.OffsetDateTime getStarted()
Time when the war started and both sides could shoot each other- Returns:
- started
-
setStarted
public void setStarted(java.time.OffsetDateTime started)
-
-