-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3210 from benceszasz/bszasz-connectfollow
CareLink Follower - CarePartner app authentication
- Loading branch information
Showing
11 changed files
with
857 additions
and
124 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
6 changes: 6 additions & 0 deletions
6
app/src/main/java/com/eveningoutpost/dexdrip/cgm/carelinkfollow/auth/CareLinkAuthType.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,6 @@ | ||
package com.eveningoutpost.dexdrip.cgm.carelinkfollow.auth; | ||
|
||
public enum CareLinkAuthType { | ||
Browser, | ||
MobileApp | ||
} |
20 changes: 20 additions & 0 deletions
20
.../main/java/com/eveningoutpost/dexdrip/cgm/carelinkfollow/auth/CareLinkAuthentication.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,20 @@ | ||
package com.eveningoutpost.dexdrip.cgm.carelinkfollow.auth; | ||
|
||
import okhttp3.Headers; | ||
|
||
public class CareLinkAuthentication { | ||
|
||
public CareLinkAuthType authType; | ||
private Headers.Builder builder; | ||
|
||
public CareLinkAuthentication(Headers headers, CareLinkAuthType authType) { | ||
this.builder = new Headers.Builder(); | ||
this.builder.addAll(headers); | ||
this.authType = authType; | ||
} | ||
|
||
public Headers getHeaders() { | ||
return builder.build(); | ||
} | ||
|
||
} |
Oops, something went wrong.