-
Notifications
You must be signed in to change notification settings - Fork 0
/
Prediction.cs
58 lines (51 loc) · 1.5 KB
/
Prediction.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace Address_Test_App
{
//This file contains the classes used by PlaceApi to convert to object
public class MatchedSubstring
{
public int length { get; set; }
public int offset { get; set; }
}
public class MainTextMatchedSubstring
{
public int length { get; set; }
public int offset { get; set; }
}
public class StructuredFormatting
{
public string main_text { get; set; }
public List<MainTextMatchedSubstring> main_text_matched_substrings { get; set; }
public string secondary_text { get; set; }
}
public class Term
{
public int offset { get; set; }
public string value { get; set; }
}
public class Prediction
{
public string description { get; set; }
public string id { get; set; }
public List<MatchedSubstring> matched_substrings { get; set; }
public string place_id { get; set; }
public string reference { get; set; }
public StructuredFormatting structured_formatting { get; set; }
public List<Term> terms { get; set; }
public List<string> types { get; set; }
}
public class RootObject
{
public List<Prediction> predictions { get; set; }
public string status { get; set; }
}
}