-
Notifications
You must be signed in to change notification settings - Fork 2
/
IFishDBStatusDisplay.cs
83 lines (83 loc) · 4.06 KB
/
IFishDBStatusDisplay.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
namespace Fishing
{
interface IFishDBStatusDisplay : ILogger
{
/**
* <summary>Start interaction with remote database. Returns false if transaction already in progress.
* This should be handled by the sync handler, not FishSQL.</summary>
* <param name="message">Message that may be displayed</param>
* <returns>true if no transaction in progress</returns>
*/
bool StartDBTransaction(string message);
/**
* <summary>Signal an end to interaction with remote database.
* This should be handled by the sync handler, not FishSQL.</summary>
* <param name="message">Message that may be displayed</param>
*/
void EndDBTransaction(string message);
/**
* <summary>Set the total number of fish to upload. For tracking progress</summary>
* <param name="fish">Total number of fish to be uploaded or renamed</param>
*/
void SetUploadFishNumber(int fish);
/**
* <summary>Set the current rod and fish names being uploaded.
* Use with <c>SetUploadFishNumber</c> to track upload progress.</summary>
* <param name="rod">Name of the rod being updated</param>
* <param name="fish">Name of the fish being uploaded</param>
*/
void SetUploadRodAndFish(string rod, string fish);
/**
* <summary>Set the current rod and fish names being renamed.
* Use with <c>SetUploadFishNumber</c> to track upload progress.</summary>
* <param name="rod">Name of the rod being updated</param>
* <param name="newName">New name of the fish being renamed</param>
* <param name="oldName">Old name of the fish being renamed</param>
*/
void SetUploadRenameRodAndFish(string rod, string newName, string oldName);
/**
* <summary>Set the number of rods to be downloaded</summary>
* <param name="rods">Number of rods to be downloaded</param>
*/
void SetDownloadRodNumber(int rods);
/**
* <summary>Set the number of fish being downloaded for the current rod.</summary>
* <param name="fish">Number of fish being downloaded for the current rod.</param>
*/
void SetDownloadRodFish(int fish);
/**
* <summary>Set the number of fish being downloaded to be renamed for the current rod.</summary>
* <param name="fish">Number of fish being downloaded to be renamed for the current rod.</param>
*/
void SetDownloadRenameRodFish(int fish);
/**
* <summary>Set the name of the rod being downloaded.
* Use with <c>SetDownloadRodNumber</c> to track download progress.</summary>
* <param name="rod">The name of the rod being downloaded</param>
*/
void SetDownloadRod(string rod);
/**
* <summary>Set the name of the fish being downloaded.
* Use with <c>SetDownloadRodFish</c> to track download progress.</summary>
* <param name="rod">The name of the fish being downloaded</param>
*/
void SetDownloadFish(string fish);
/**
* <summary>Set the name of the fish being renamed.
* Use with <c>SetDownloadRenamedRodFish</c> to track download progress.</summary>
* <param name="newName">New name of the fish being renamed</param>
* <param name="oldName">Old name of the fish being renamed</param>
*/
void SetDownloadRenameFish(string newName, string oldName);
/**
* <summary>Set the name of the bait or zone being synced.</summary>
* <param name="rod">The name of the fish being synced</param>
* <param name="baitOrZone">The name of the bait or zone being synced</param>
*/
void SetFishBaitOrZone(string fish, string baitOrZone);
/**
* <summary>Set a message indicating an error has been encountered.</summary>
* <param name="message">The error message</param>
*/
}
}