Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
InstiApp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
RAHUL SHARMA
InstiApp
Commits
fd59d9d4
Commit
fd59d9d4
authored
Jun 25, 2018
by
Varun Patil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update venue model from location API
parent
e2bad655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
97 additions
and
1 deletion
+97
-1
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/data/Venue.java
...src/main/java/in/ac/iitb/gymkhana/iitbapp/data/Venue.java
+97
-1
No files found.
app/src/main/java/in/ac/iitb/gymkhana/iitbapp/data/Venue.java
View file @
fd59d9d4
...
...
@@ -16,6 +16,30 @@ public class Venue {
@ColumnInfo
(
name
=
"name"
)
@SerializedName
(
"name"
)
String
venueName
;
@ColumnInfo
(
name
=
"short_name"
)
@SerializedName
(
"short_name"
)
String
venueShortName
;
@ColumnInfo
(
name
=
"description"
)
@SerializedName
(
"description"
)
String
venueDescripion
;
@ColumnInfo
(
name
=
"parent"
)
@SerializedName
(
"parent"
)
String
venueParentId
;
@ColumnInfo
(
name
=
"parent_relation"
)
@SerializedName
(
"parent_relation"
)
String
venueParentRelation
;
@ColumnInfo
(
name
=
"group_id"
)
@SerializedName
(
"group_id"
)
Integer
venueGroupId
;
@ColumnInfo
(
name
=
"pixel_x"
)
@SerializedName
(
"pixel_x"
)
Integer
venuePixelX
;
@ColumnInfo
(
name
=
"pixel_y"
)
@SerializedName
(
"pixel_y"
)
Integer
venuePixelY
;
@ColumnInfo
(
name
=
"reusable"
)
@SerializedName
(
"reusable"
)
Boolean
venueReusable
;
@ColumnInfo
(
name
=
"lat"
)
@SerializedName
(
"lat"
)
double
venueLatitude
;
...
...
@@ -23,9 +47,17 @@ public class Venue {
@SerializedName
(
"lng"
)
double
venueLongitude
;
public
Venue
(
String
venueID
,
String
venueName
,
double
venueLatitude
,
double
venueLongitude
)
{
public
Venue
(
String
venueID
,
String
venueName
,
String
venueShortName
,
String
venueDescripion
,
String
venueParentId
,
String
venueParentRelation
,
Integer
venueGroupId
,
Integer
venuePixelX
,
Integer
venuePixelY
,
Boolean
venueReusable
,
double
venueLatitude
,
double
venueLongitude
)
{
this
.
venueID
=
venueID
;
this
.
venueName
=
venueName
;
this
.
venueShortName
=
venueShortName
;
this
.
venueDescripion
=
venueDescripion
;
this
.
venueParentId
=
venueParentId
;
this
.
venueParentRelation
=
venueParentRelation
;
this
.
venueGroupId
=
venueGroupId
;
this
.
venuePixelX
=
venuePixelX
;
this
.
venuePixelY
=
venuePixelY
;
this
.
venueReusable
=
venueReusable
;
this
.
venueLatitude
=
venueLatitude
;
this
.
venueLongitude
=
venueLongitude
;
}
...
...
@@ -61,4 +93,68 @@ public class Venue {
public
void
setVenueLongitude
(
double
venueLongitude
)
{
this
.
venueLongitude
=
venueLongitude
;
}
public
String
getVenueShortName
()
{
return
venueShortName
;
}
public
void
setVenueShortName
(
String
venueShortName
)
{
this
.
venueShortName
=
venueShortName
;
}
public
String
getVenueDescripion
()
{
return
venueDescripion
;
}
public
void
setVenueDescripion
(
String
venueDescripion
)
{
this
.
venueDescripion
=
venueDescripion
;
}
public
String
getVenueParentId
()
{
return
venueParentId
;
}
public
void
setVenueParentId
(
String
venueParentId
)
{
this
.
venueParentId
=
venueParentId
;
}
public
String
getVenueParentRelation
()
{
return
venueParentRelation
;
}
public
void
setVenueParentRelation
(
String
venueParentRelation
)
{
this
.
venueParentRelation
=
venueParentRelation
;
}
public
Integer
getVenueGroupId
()
{
return
venueGroupId
;
}
public
void
setVenueGroupId
(
Integer
venueGroupId
)
{
this
.
venueGroupId
=
venueGroupId
;
}
public
Integer
getVenuePixelX
()
{
return
venuePixelX
;
}
public
void
setVenuePixelX
(
Integer
venuePixelX
)
{
this
.
venuePixelX
=
venuePixelX
;
}
public
Integer
getVenuePixelY
()
{
return
venuePixelY
;
}
public
void
setVenuePixelY
(
Integer
venuePixelY
)
{
this
.
venuePixelY
=
venuePixelY
;
}
public
Boolean
getVenueReusable
()
{
return
venueReusable
;
}
public
void
setVenueReusable
(
Boolean
venueReusable
)
{
this
.
venueReusable
=
venueReusable
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment