Files
Next-Location/app/src/main/java/com/a1/nextlocation/data/Coupon.java
Sem van der Hoeven 1d48ada0ab changed loader stuff
2020-12-17 10:59:07 +01:00

43 lines
754 B
Java

package com.a1.nextlocation.data;
import androidx.annotation.NonNull;
import org.jetbrains.annotations.NotNull;
public class Coupon {
/**
* fields need to be public for the database to be able to use them
*/
@NonNull
private String code;
@NonNull
private String reward;
public Coupon(@NonNull String code, @NotNull String reward) {
this.code = code;
this.reward = reward;
}
@NonNull
public String getCode() {
return code;
}
@NonNull
public String getReward() {
return reward;
}
public void setCode(@NonNull String code) {
this.code = code;
}
public void setReward(@NonNull String reward) {
this.reward = reward;
}
}