-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#17 : Added option to add/request new Privy
- Loading branch information
1 parent
5e78825
commit 8d68995
Showing
10 changed files
with
313 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
app/src/main/java/com/pulkit4tech/privy/data/json/PostPrivyRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package com.pulkit4tech.privy.data.json; | ||
|
||
import java.util.ArrayList; | ||
|
||
public class PostPrivyRequest { | ||
private Location location; | ||
private int accuracy; | ||
private String name; | ||
private String address; | ||
private ArrayList<String> types; | ||
private String language; | ||
|
||
public Location getLocation() { | ||
return location; | ||
} | ||
|
||
public void setLocation(Location location) { | ||
this.location = location; | ||
} | ||
|
||
public int getAccuracy() { | ||
return accuracy; | ||
} | ||
|
||
public void setAccuracy(int accuracy) { | ||
this.accuracy = accuracy; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
public void setAddress(String address) { | ||
this.address = address; | ||
} | ||
|
||
public ArrayList<String> getTypes() { | ||
return types; | ||
} | ||
|
||
public void setTypes(ArrayList<String> types) { | ||
this.types = types; | ||
} | ||
|
||
public String getLanguage() { | ||
return language; | ||
} | ||
|
||
public void setLanguage(String language) { | ||
this.language = language; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "PostPrivyRequest{" + | ||
"location=" + location + | ||
", accuracy=" + accuracy + | ||
", name='" + name + '\'' + | ||
", address='" + address + '\'' + | ||
", types=" + types + | ||
", language='" + language + '\'' + | ||
'}'; | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
app/src/main/java/com/pulkit4tech/privy/data/json/PostPrivyResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package com.pulkit4tech.privy.data.json; | ||
|
||
public class PostPrivyResponse { | ||
private String id; | ||
private String place_id; | ||
private String reference; | ||
private String scope; | ||
private String status; | ||
|
||
public String getId() { | ||
return id; | ||
} | ||
|
||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getPlaceid() { | ||
return place_id; | ||
} | ||
|
||
public void setPlaceid(String place_id) { | ||
this.place_id = place_id; | ||
} | ||
|
||
public String getReference() { | ||
return reference; | ||
} | ||
|
||
public void setReference(String reference) { | ||
this.reference = reference; | ||
} | ||
|
||
public String getScope() { | ||
return scope; | ||
} | ||
|
||
public void setScope(String scope) { | ||
this.scope = scope; | ||
} | ||
|
||
public String getStatus() { | ||
return status; | ||
} | ||
|
||
public void setStatus(String status) { | ||
this.status = status; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "PostPrivyResponse{" + | ||
"id='" + id + '\'' + | ||
", place_id='" + place_id + '\'' + | ||
", reference='" + reference + '\'' + | ||
", scope='" + scope + '\'' + | ||
", status='" + status + '\'' + | ||
'}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.