Skip to content

Commit

Permalink
Fix return types (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 authored Mar 11, 2023
1 parent c9405ea commit 622e0fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ protected ActivityImpl(String name, String url, ActivityType type)
this(name, url, type, null, null);
}

protected ActivityImpl(String name, String url, ActivityType type, RichPresence.Timestamps timestamps, EmojiUnion emoji)
protected ActivityImpl(String name, String url, ActivityType type, Activity.Timestamps timestamps, EmojiUnion emoji)
{
this.name = name;
this.url = url;
Expand Down Expand Up @@ -89,7 +89,7 @@ public ActivityType getType()
}

@Nullable
public RichPresence.Timestamps getTimestamps()
public Activity.Timestamps getTimestamps()
{
return timestamps;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -889,14 +889,14 @@ public static Activity createActivity(DataObject gameJson)
type = Activity.ActivityType.PLAYING;
}

RichPresence.Timestamps timestamps = null;
Activity.Timestamps timestamps = null;
if (!gameJson.isNull("timestamps"))
{
DataObject obj = gameJson.getObject("timestamps");
long start, end;
start = obj.getLong("start", 0L);
end = obj.getLong("end", 0L);
timestamps = new RichPresence.Timestamps(start, end);
timestamps = new Activity.Timestamps(start, end);
}

EmojiUnion emoji = null;
Expand Down

0 comments on commit 622e0fb

Please sign in to comment.