Skip to content

Commit

Permalink
Add deserializer methods
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Aug 5, 2024
1 parent 12b6408 commit a7b0458
Show file tree
Hide file tree
Showing 4 changed files with 310 additions and 53 deletions.
6 changes: 5 additions & 1 deletion src/main/java/com/yocto/yoclib/epp/Message.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ public class Message {
private String value;
private String lang;

public Message(String value){
this.value = value;
}

public String getValue() {
return this.value;
}
Expand All @@ -18,7 +22,7 @@ public Message setValue(String value) {
return this;
}

public Message setLang(String lang) {
public Message setLanguage(String lang) {
this.lang = lang;
return this;
}
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/yocto/yoclib/epp/Reason.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ public class Reason {

private String value;

public Reason(String value){
this.value = value;
}

public String getLanguage() {
return this.lang;
}
Expand Down
12 changes: 5 additions & 7 deletions src/main/java/com/yocto/yoclib/epp/Value.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
package com.yocto.yoclib.epp;

import java.util.HashMap;
import java.util.Map;

public class Value {

private Object any;
private String anyAttribute;
private final Map<String,String> anyAttribute = new HashMap<>();

public Object getAny() {
return this.any;
}

public String getAnyAttribute() {
public Map<String,String> getAnyAttribute() {
return this.anyAttribute;
}

Expand All @@ -18,11 +21,6 @@ public Value setAny(Object any) {
return this;
}

public Value setAnyAttribute(String anyAttribute) {
this.anyAttribute = anyAttribute;
return this;
}

@Override
public String toString() {
return "Value{" +
Expand Down
Loading

0 comments on commit a7b0458

Please sign in to comment.