Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Krishna Vemulavada
/
vera_2.1_app
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9085c295
authored
Feb 09, 2017
by
Kunj
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Combined two APIs in one in Catalogue Categories Screen.
parent
6aab7e0c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
29 additions
and
14 deletions
app/src/citrix/java/com/vsoft/servicenow/AppConfig.java
app/src/main/java/com/vsoft/servicenow/api/interfaces/CatalogueCategoryApi.java
app/src/main/java/com/vsoft/servicenow/api/managers/CatalogueApiManager.java
app/src/main/java/com/vsoft/servicenow/db/models/Catalogue.java
app/src/main/java/com/vsoft/servicenow/utils/Constants.java
app/src/uofl/java/com/vsoft/servicenow/AppConfig.java
app/src/citrix/java/com/vsoft/servicenow/AppConfig.java
View file @
9085c295
...
...
@@ -21,7 +21,6 @@ public class AppConfig {
*/
/*Catalogue Category API */
public
static
final
String
URL_GET_CATALOGUE
=
"api/vsng2/app_apis/category"
;
public
static
final
String
URL_GET_CATALOGUE_ORDER
=
"api/vsng2/app_apis/catalohhome"
;
/*Catalogue Category Items API */
public
static
final
String
URL_GET_CATALOGUE_ITEM
=
"api/vsng2/app_apis/catalog_item"
;
...
...
app/src/main/java/com/vsoft/servicenow/api/interfaces/CatalogueCategoryApi.java
View file @
9085c295
...
...
@@ -17,10 +17,6 @@ public interface CatalogueCategoryApi {
// Get Catalogue API
@GET
(
Constants
.
URL_GET_CATALOGUE
)
Call
<
ResponseBody
>
getCatalogue
(
@Query
(
Constants
.
URL_PARAM_SYS_ID
)
String
sysId
);
// Get Catalogue Order API
@GET
(
Constants
.
URL_GET_CATALOGUE_ORDER
)
Call
<
ResponseBody
>
getCatalogueOrder
();
}
app/src/main/java/com/vsoft/servicenow/api/managers/CatalogueApiManager.java
View file @
9085c295
This diff is collapsed.
Click to expand it.
app/src/main/java/com/vsoft/servicenow/db/models/Catalogue.java
View file @
9085c295
...
...
@@ -20,6 +20,9 @@ public class Catalogue {
@SerializedName
(
"homepage_image"
)
@Expose
private
String
icon
;
@SerializedName
(
"order"
)
@Expose
private
long
order
;
/**
*
...
...
@@ -93,17 +96,36 @@ public class Catalogue {
this
.
icon
=
icon
;
}
/**
*
* @param order
* The order
*/
public
void
setOrder
(
long
order
)
{
this
.
order
=
order
;
}
/**
*
* @return
* The order
*/
public
long
getOrder
()
{
return
order
;
}
public
static
class
Json
{
public
static
final
String
URL_PARAM_CATALOGUE_SYSPRM_QUERY_VALUE
=
"sc_catalog"
;
}
@Override
public
String
toString
()
{
return
"Catalogue{"
+
"title='"
+
title
+
'\''
+
", description='"
+
description
+
'\''
+
", sysId='"
+
sysId
+
'\''
+
", icon='"
+
icon
+
'\''
+
'}'
;
return
"Catalogue{"
+
"title='"
+
title
+
'\''
+
", description='"
+
description
+
'\''
+
", sysId='"
+
sysId
+
'\''
+
", icon='"
+
icon
+
'\''
+
", order="
+
order
+
'}'
;
}
}
app/src/main/java/com/vsoft/servicenow/utils/Constants.java
View file @
9085c295
...
...
@@ -132,7 +132,6 @@ public class Constants {
/*Catalogue Category API */
public
static
final
String
URL_GET_CATALOGUE
=
DOMAIN
+
AppConfig
.
URL_GET_CATALOGUE
;
public
static
final
String
URL_GET_CATALOGUE_ORDER
=
DOMAIN
+
AppConfig
.
URL_GET_CATALOGUE_ORDER
;
/*Catalogue Category Items API */
public
static
final
String
URL_GET_CATALOGUE_ITEM
=
DOMAIN
+
AppConfig
.
URL_GET_CATALOGUE_ITEM
;
...
...
app/src/uofl/java/com/vsoft/servicenow/AppConfig.java
View file @
9085c295
...
...
@@ -20,8 +20,7 @@ public class AppConfig {
* Web services urls
*/
/*Catalogue Category API */
public
static
final
String
URL_GET_CATALOGUE
=
"api/uno33/uofl_mobile/category"
;
public
static
final
String
URL_GET_CATALOGUE_ORDER
=
"api/uno33/uofl_mobile/catalohhome"
;
public
static
final
String
URL_GET_CATALOGUE
=
"api/uno33/uofl_mobile/catalogue_screen"
;
/*Catalogue Category Items API */
public
static
final
String
URL_GET_CATALOGUE_ITEM
=
"api/uno33/uofl_mobile/catalog_item"
;
...
...
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