Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
O
operate-android-kotlin
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
examples
operate-android-kotlin
Commits
7e172991
Commit
7e172991
authored
Aug 31, 2017
by
Paul Bird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tidy up unused code
parent
23abecbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
5 deletions
+1
-5
Authenticate.kt
...main/java/tech/essensys/operateapiexample/Authenticate.kt
+0
-3
OperateAPI1.kt
.../main/java/tech/essensys/operateapiexample/OperateAPI1.kt
+1
-2
No files found.
app/src/main/java/tech/essensys/operateapiexample/Authenticate.kt
View file @
7e172991
...
...
@@ -115,8 +115,6 @@ class Authenticate(context: Context) {
companion
object
{
val
JSON
=
MediaType
.
parse
(
"application/json; charset=utf-8"
)
val
FORM_ENCODED
=
MediaType
.
parse
(
"application/x-www-form-urlencoded; charset=utf-8"
)
}
}
\ No newline at end of file
app/src/main/java/tech/essensys/operateapiexample/OperateAPI1.kt
View file @
7e172991
...
...
@@ -21,12 +21,11 @@ import okhttp3.Response
*/
class
OperateAPI1
(
context
:
Context
)
{
private
val
baseAPI
=
"https://api.occupie.com/api/1.0/"
private
val
sharedPrefs
:
SharedPrefs
private
val
accessToken
:
String
private
val
JSON
=
MediaType
.
parse
(
"application/json; charset=utf-8"
)
private
val
FORM_ENCODED
=
MediaType
.
parse
(
"application/x-www-form-urlencoded; charset=utf-8"
)
init
{
sharedPrefs
=
SharedPrefs
(
context
)
...
...
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