Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
meser
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Muhammad Suryono
meser
Commits
a45d5419
Commit
a45d5419
authored
Sep 01, 2020
by
Muhammad Suryono
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update
parent
db00e096
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
MainActivity.java
app/src/main/java/com/yono/messeripos/MainActivity.java
+6
-0
ProductService.java
.../java/com/yono/messeripos/api/service/ProductService.java
+7
-0
No files found.
app/src/main/java/com/yono/messeripos/MainActivity.java
View file @
a45d5419
...
...
@@ -56,6 +56,7 @@ import com.yono.messeripos.utils.Utils;
import
java.util.ArrayList
;
import
java.util.List
;
import
okhttp3.ResponseBody
;
import
retrofit2.Call
;
import
retrofit2.Callback
;
import
retrofit2.Response
;
...
...
@@ -140,6 +141,11 @@ public class MainActivity extends AppCompatActivity {
productAdapterListener
();
categoryAdapterListener
();
formCategoryListener
();
punyaAbiCoba
();
}
private
void
punyaAbiCoba
()
{
}
private
void
toolbarSetOnItemClicked
()
{
...
...
app/src/main/java/com/yono/messeripos/api/service/ProductService.java
View file @
a45d5419
...
...
@@ -7,18 +7,22 @@ import com.yono.messeripos.response.DataResponse;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
okhttp3.MultipartBody
;
import
okhttp3.RequestBody
;
import
okhttp3.ResponseBody
;
import
retrofit2.Call
;
import
retrofit2.http.Body
;
import
retrofit2.http.DELETE
;
import
retrofit2.http.Field
;
import
retrofit2.http.GET
;
import
retrofit2.http.Multipart
;
import
retrofit2.http.POST
;
import
retrofit2.http.PUT
;
import
retrofit2.http.Part
;
import
retrofit2.http.Path
;
import
retrofit2.http.QueryMap
;
public
interface
ProductService
{
@GET
(
ApiHelper
.
VERSI_API_1
+
"products"
)
...
...
@@ -43,4 +47,7 @@ public interface ProductService {
@Part
(
"stock"
)
Integer
stock
,
@Part
(
"category_id"
)
int
category_id
);
@POST
(
"https://ws-dev.oktapos.com/ws/synitem"
)
Call
<
ResponseBody
>
syncData
();
}
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