StickerPacksValidator.java
1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.bitstrips.imoji.util;
import com.bitstrips.imoji.models.Sticker;
import com.bitstrips.imoji.models.StickerPack;
import com.bitstrips.imoji.models.StickerPacks;
import java.util.Iterator;
import java.util.List;
public class StickerPacksValidator
{
public static boolean validate(StickerPacks paramStickerPacks)
{
if (paramStickerPacks == null) {
return false;
}
if (paramStickerPacks.get() == null) {
return false;
}
try
{
Object localObject2;
do
{
paramStickerPacks = paramStickerPacks.get().iterator();
Object localObject1;
while (!((Iterator)localObject1).hasNext())
{
if (!paramStickerPacks.hasNext()) {
break;
}
localObject1 = (StickerPack)paramStickerPacks.next();
if (((StickerPack)localObject1).getTitle() == null) {
return false;
}
if (((StickerPack)localObject1).getStickers() == null) {
return false;
}
localObject1 = ((StickerPack)localObject1).getStickers().iterator();
}
localObject2 = (Sticker)((Iterator)localObject1).next();
if (((Sticker)localObject2).getComicId() == null) {
return false;
}
if (((Sticker)localObject2).getTemplateId() == null) {
return false;
}
if (((Sticker)localObject2).getImageUrl() == null) {
return false;
}
if (((Sticker)localObject2).getTags() == null) {
return false;
}
localObject2 = ((Sticker)localObject2).getCapabilities();
} while (localObject2 != null);
return false;
}
catch (Exception paramStickerPacks)
{
return false;
}
return true;
}
}
/* Location: /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/util/StickerPacksValidator.class
* Java compiler version: 6 (50.0)
* JD-Core Version: 0.7.1
*/