Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
BRUHItsABunny committed Feb 18, 2021
1 parent 9fe8b1f commit 1358221
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions androidid.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,18 @@ func (id *AndroidID) Random() error {
return err
}

func (id AndroidID) toDecimalString() string {
func (id AndroidID) ToDecimalString() string {
return strconv.FormatUint(id.id, 10)
}

func (id AndroidID) toHexString() string {
func (id AndroidID) ToHexString() string {
return strconv.FormatUint(id.id, 16)
}

func (id AndroidID) Equals(comparison AndroidID) bool {
return id.id == comparison.id
}

func (id AndroidID) IsNull() bool {
return id.id < 1
}

0 comments on commit 1358221

Please sign in to comment.