-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.cs
74 lines (61 loc) · 1.66 KB
/
structs.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
using System;
using System.Collections;
namespace Update
{
public struct stockinfo
{
private string _symbol;
private DateTime _lastupdate;
private int _number;
public string Symbol { get { return _symbol; } }
public DateTime LastUpdate { get { return _lastupdate; } }
public int Number { get { return _number; } }
public stockinfo(string s, DateTime d, int n)
{
_symbol = s;
_lastupdate = d;
_number = n;
}
}
public struct stockdownloaded
{
private string _symbol;
private DateTime _newlastupdate;
private string _data;
private int _number;
public string StockSymbol { get { return _symbol; } }
public DateTime NewLastUpdate { get { return _newlastupdate; } }
public string Data { get { return _data;}}
public int Number { get { return _number; } }
public stockdownloaded(string s, DateTime d, string data, int n)
{
_symbol = s;
_newlastupdate = d;
_data = data;
_number = n;
}
}
public struct toDatabase
{
private DateTime _newRecentDate;
private Stack _myStrings;
private string _myStockSymbol;
private int _number;
public DateTime NewRecentDate { get { return _newRecentDate; }}
//public string[] DBaseStrings { get { return _dbasestrings; } }
public Stack DBaseStrings { get { return _myStrings; } }
public string MyStockSymbol { get { return _myStockSymbol; } }
public int Number { get { return _number; } }
public toDatabase(int n,string symb, DateTime d, Stack s)
{
_number = n;
_myStockSymbol = symb;
_newRecentDate = d;
_myStrings = new Stack();
while (s.Count > 0)
{
_myStrings.Push(s.Pop());
}
}
}
}