Skip to content

Commit

Permalink
Hopefully fixed Actility basestation not working model
Browse files Browse the repository at this point in the history
  • Loading branch information
cpoder committed Jul 11, 2024
1 parent d038552 commit e3d6299
Show file tree
Hide file tree
Showing 7 changed files with 1,328 additions and 1,094 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
Expand Down Expand Up @@ -47,6 +48,7 @@
BsBrief.JSON_PROPERTY_TAGS, BsBrief.JSON_PROPERTY_TIME_SYNC, BsBrief.JSON_PROPERTY_UP_FRAME,
BsBrief.JSON_PROPERTY_VENDOR, BsBrief.JSON_PROPERTY_VERSION, BsBrief.JSON_PROPERTY_RF_REGION_I_D })
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-05-31T16:08:44.630492043+02:00[Europe/Paris]", comments = "Generator version: 7.6.0")
@JsonIgnoreProperties(ignoreUnknown = true)
public class BsBrief {
public static final String JSON_PROPERTY_ACTIVATE_BEACON_TRANSMISSION = "activateBeaconTransmission";
private Boolean activateBeaconTransmission;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,152 +12,22 @@

package lora.ns.actility.api.model.basestation;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.annotation.JsonTypeName;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
* BsBriefBeacons
*/
@JsonPropertyOrder({ BsBriefBeacons.JSON_PROPERTY_LAST_DELIVERY_CAUSE,
BsBriefBeacons.JSON_PROPERTY_LAST_DELIVERY_FAILED_CAUSE,
BsBriefBeacons.JSON_PROPERTY_LAST_DELIVERY_FAILED_CAUSE_DATE })
@JsonTypeName("BsBrief_beacons")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-05-31T16:08:44.630492043+02:00[Europe/Paris]", comments = "Generator version: 7.6.0")
@Data
@EqualsAndHashCode
public class BsBriefBeacons {
public static final String JSON_PROPERTY_LAST_DELIVERY_CAUSE = "lastDeliveryCause";
private String lastDeliveryCause;

public static final String JSON_PROPERTY_LAST_DELIVERY_FAILED_CAUSE = "lastDeliveryFailedCause";
private String lastDeliveryFailedCause;

public static final String JSON_PROPERTY_LAST_DELIVERY_FAILED_CAUSE_DATE = "lastDeliveryFailedCauseDate";
private Long lastDeliveryFailedCauseDate;

public BsBriefBeacons() {
}

public BsBriefBeacons lastDeliveryCause(String lastDeliveryCause) {

this.lastDeliveryCause = lastDeliveryCause;
return this;
}

/**
* Specify the delivery cause of the last beacon transmission: - 0x: Success -
* Ax: Transmission slot busy - Bx: Too late for beacon slot - Dx: DC constraint
* on beacon slot
*
* @return lastDeliveryCause
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LAST_DELIVERY_CAUSE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getLastDeliveryCause() {
return lastDeliveryCause;
}

@JsonProperty(JSON_PROPERTY_LAST_DELIVERY_CAUSE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastDeliveryCause(String lastDeliveryCause) {
this.lastDeliveryCause = lastDeliveryCause;
}

public BsBriefBeacons lastDeliveryFailedCause(String lastDeliveryFailedCause) {

this.lastDeliveryFailedCause = lastDeliveryFailedCause;
return this;
}

/**
* Specify the delivery cause of the last beacon transmission failure: - 0x:
* Success - Ax: Transmission slot busy - Bx: Too late for beacon slot - Dx: DC
* constraint on beacon slot
*
* @return lastDeliveryFailedCause
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LAST_DELIVERY_FAILED_CAUSE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getLastDeliveryFailedCause() {
return lastDeliveryFailedCause;
}

@JsonProperty(JSON_PROPERTY_LAST_DELIVERY_FAILED_CAUSE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastDeliveryFailedCause(String lastDeliveryFailedCause) {
this.lastDeliveryFailedCause = lastDeliveryFailedCause;
}

public BsBriefBeacons lastDeliveryFailedCauseDate(Long lastDeliveryFailedCauseDate) {

this.lastDeliveryFailedCauseDate = lastDeliveryFailedCauseDate;
return this;
}

/**
* Last beacon transmission failure report date, epoch time in milliseconds.
*
* @return lastDeliveryFailedCauseDate
**/
@javax.annotation.Nullable
@JsonProperty(JSON_PROPERTY_LAST_DELIVERY_FAILED_CAUSE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public Long getLastDeliveryFailedCauseDate() {
return lastDeliveryFailedCauseDate;
}

@JsonProperty(JSON_PROPERTY_LAST_DELIVERY_FAILED_CAUSE_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLastDeliveryFailedCauseDate(Long lastDeliveryFailedCauseDate) {
this.lastDeliveryFailedCauseDate = lastDeliveryFailedCauseDate;
}

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BsBriefBeacons bsBriefBeacons = (BsBriefBeacons) o;
return Objects.equals(this.lastDeliveryCause, bsBriefBeacons.lastDeliveryCause)
&& Objects.equals(this.lastDeliveryFailedCause, bsBriefBeacons.lastDeliveryFailedCause)
&& Objects.equals(this.lastDeliveryFailedCauseDate, bsBriefBeacons.lastDeliveryFailedCauseDate);
}

@Override
public int hashCode() {
return Objects.hash(lastDeliveryCause, lastDeliveryFailedCause, lastDeliveryFailedCauseDate);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BsBriefBeacons {\n");
sb.append(" lastDeliveryCause: ").append(toIndentedString(lastDeliveryCause)).append("\n");
sb.append(" lastDeliveryFailedCause: ").append(toIndentedString(lastDeliveryFailedCause)).append("\n");
sb.append(" lastDeliveryFailedCauseDate: ").append(toIndentedString(lastDeliveryFailedCauseDate)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
private Integer totalRequested;

private Integer totalSent;
}
Loading

0 comments on commit e3d6299

Please sign in to comment.