Skip to content

Commit

Permalink
#28 Handle deleted uid
Browse files Browse the repository at this point in the history
  • Loading branch information
binchoo committed Sep 21, 2022
1 parent a5245d7 commit e1e49c8
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.binchoo.paimonganyu.chatbot.views.redeem;

import lombok.Data;
import org.binchoo.paimonganyu.hoyopass.Region;
import org.binchoo.paimonganyu.hoyopass.Uid;
import org.binchoo.paimonganyu.hoyopass.UserHoyopass;
import org.binchoo.paimonganyu.redeem.UserRedeem;
Expand Down Expand Up @@ -84,6 +85,9 @@ public static List<UidRedeem> organize(UserHoyopass user, List<UserRedeem> redee
private static Uid nonExisting(String uid) {
return Uid.builder()
.uidString(uid)
.region(Region.OS_OTHER)
.characterLevel(0)
.isLumine(false)
.characterName("Deleted uid.")
.build();
}
Expand Down

0 comments on commit e1e49c8

Please sign in to comment.