-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathAudiencePaths.cs
More file actions
40 lines (31 loc) · 1.78 KB
/
Copy pathAudiencePaths.cs
File metadata and controls
40 lines (31 loc) · 1.78 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
using System.IO;
namespace Immutable.Audience
{
internal static class AudiencePaths
{
private const string RootDirName = "imtbl_audience";
private const string IdentityFileName = "identity";
private const string ConsentFileName = "consent";
private const string QueueDirName = "queue";
private const string InstallReferrerFileName = "install_referrer";
private const string InstallReferrerSentFileName = "install_referrer_sent";
private const string GAIDFileName = "gaid";
private const string AttStatusFileName = "att_status";
internal static string AudienceDir(string persistentDataPath) =>
Path.Combine(persistentDataPath, RootDirName);
internal static string IdentityFile(string persistentDataPath) =>
Path.Combine(AudienceDir(persistentDataPath), IdentityFileName);
internal static string ConsentFile(string persistentDataPath) =>
Path.Combine(AudienceDir(persistentDataPath), ConsentFileName);
internal static string QueueDir(string persistentDataPath) =>
Path.Combine(AudienceDir(persistentDataPath), QueueDirName);
internal static string InstallReferrerFile(string persistentDataPath) =>
Path.Combine(AudienceDir(persistentDataPath), InstallReferrerFileName);
internal static string InstallReferrerSentFile(string persistentDataPath) =>
Path.Combine(AudienceDir(persistentDataPath), InstallReferrerSentFileName);
internal static string GAIDFile(string persistentDataPath) =>
Path.Combine(AudienceDir(persistentDataPath), GAIDFileName);
internal static string AttStatusFile(string persistentDataPath) =>
Path.Combine(AudienceDir(persistentDataPath), AttStatusFileName);
}
}