Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Kotlin sample for API reference #95

Merged
merged 2 commits into from
Jan 31, 2023
Merged

Conversation

addb
Copy link
Contributor

@addb addb commented Jan 31, 2023

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Comment on lines 601 to 605
val id = item.getId()

val state = item.getAuthenticatedState()

val primary = item.isPrimary()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can use property access syntax for these getters
val id = item.id
val state = item.authenticatedState
val primary = item.isPrimary


##### Syntax
```kotlin
fun removeIdentity(item: IdentityItem, namespace: String)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some of these params are optional without these changes #97

Copy link
Contributor

@emdobrin emdobrin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good, pending #97

@codecov
Copy link

codecov bot commented Jan 31, 2023

Codecov Report

Merging #95 (501f0f4) into dev-v2.0.0 (8962b6b) will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##           dev-v2.0.0      #95   +/-   ##
===========================================
  Coverage       93.36%   93.36%           
===========================================
  Files              12       12           
  Lines             678      678           
  Branches          103      103           
===========================================
  Hits              633      633           
  Misses             16       16           
  Partials           29       29           
Flag Coverage Δ
functional-tests 67.55% <ø> (ø)
unit-tests 93.07% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@emdobrin emdobrin added the documentation Improvements or additions to documentation label Jan 31, 2023
@emdobrin emdobrin merged commit a65ecfd into adobe:dev-v2.0.0 Jan 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants