-
Notifications
You must be signed in to change notification settings - Fork 13
/
NotificationExtensions.cs
48 lines (47 loc) · 1.62 KB
/
NotificationExtensions.cs
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
using System;
using IMLokesh.Extensions;
namespace Better_Nike_Bot
{
// Token: 0x0200002A RID: 42
public static class NotificationExtensions
{
// Token: 0x060001EF RID: 495 RVA: 0x00022014 File Offset: 0x00020214
public static string ReplacePlaceholders(this string str, AtcItem item)
{
if (item.IsNullOrDefault<AtcItem>())
{
item = new AtcItem(new Account("[email protected]", "pass", "10", "", "", "", "", "", "", "", null, false), "http://store.nike.com/us/en_us/pd/zoom-field-general-training-shoe/pid-1546292/pgid-10266634", "10")
{
Details = new ProductDetails
{
Line1 = "Nike Zoom Field General (Ohio State)",
Line2 = "Men's Training Shoe",
Price = "130.0",
ProductImage = "http://images.nike.com/is/image/DotCom/THN_PS/Nike-Zoom-Field-General-Ohio-State-Mens-Training-Shoe-654859_061.jpg?hei=620&wid=620&fmt=png",
Size = "10",
StyleCode = "654859-061"
}
};
}
return str.ReplaceStringArray(NotificationSettings.AvailableFields, new string[]
{
item.Account.EmailAddress + (Form1.SendPassword ? ", password: {0}".With(new object[]
{
item.Account.Password
}) : ""),
item.SnkrsBuyUrl.IsNullOrWhiteSpace() ? NikeUrls.NikeCart : item.SnkrsBuyUrl,
item.Details.Line2,
item.Details.ProductImage,
item.Url,
item.Details.Line1,
item.Details.Price,
item.Details.Size,
item.Details.StyleCode,
NotificationSettings.ServiceLink,
NotificationSettings.ServiceLogoImage,
NotificationSettings.ServiceName,
NotificationSettings.ServiceTwitterHandle
});
}
}
}