| | |
| | | Loading loading = new Loading(); |
| | | frameLayout.AddChidren(loading); |
| | | loading.Start(); |
| | | List<VideoMethod.FlVideo> listESVideoInfo = new List<VideoMethod.FlVideo>(); |
| | | List<FlVideo> listESVideoInfo = new List<FlVideo>(); |
| | | List<CallView> listCall = new List<CallView>(); |
| | | new System.Threading.Thread(() => |
| | | { |
| | |
| | | Application.RunOnMainThread(() => |
| | | { |
| | | loading.Hide(); |
| | | var mainView = new MainView(); |
| | | var mainView = new VideoMainView(); |
| | | MainPage.BasePageView.AddChidren(mainView); |
| | | mainView.Show(listESVideoInfo, listCall, video); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | |
| | | System.DateTime startTime = TimeZone.CurrentTimeZone.ToLocalTime(new System.DateTime(1970, 1, 1)); // 当地时区 |
| | | return ((long)(DateTime.Now.AddDays(1) - startTime).TotalSeconds).ToString(); // 相差秒数 |
| | | } |
| | | [Serializable] |
| | | public class VideoClouds |
| | | { |
| | | /// <summary> |
| | | /// 丰林绑定id(flBindId)(userKey) |
| | | /// </summary> |
| | | public string id = string.Empty; |
| | | /// <summary> |
| | | /// 住宅id |
| | | /// </summary> |
| | | public string homeId = string.Empty; |
| | | /// <summary> |
| | | /// 虚拟手机号 |
| | | /// </summary> |
| | | public string phone = string.Empty; |
| | | /// <summary> |
| | | /// 虚拟身份证号码 |
| | | /// </summary> |
| | | public string idCard = string.Empty; |
| | | /// <summary> |
| | | /// 社区主键Id |
| | | /// </summary> |
| | | public string communtiyId = string.Empty; |
| | | /// <summary> |
| | | /// 丰林楼栋号 |
| | | /// </summary> |
| | | public string flBuildingId = string.Empty; |
| | | /// <summary> |
| | | /// 丰林楼栋名称 |
| | | /// </summary> |
| | | public string flBuildingName = string.Empty; |
| | | /// <summary> |
| | | /// 丰林房间名称 |
| | | /// </summary> |
| | | public string flRoomId = string.Empty; |
| | | /// <summary> |
| | | /// 丰林安全密钥 |
| | | /// </summary> |
| | | public string flSecretKey = string.Empty; |
| | | /// <summary> |
| | | /// 丰林的小区Id |
| | | /// </summary> |
| | | public string flCmtId = string.Empty; |
| | | |
| | | } |
| | | [Serializable] |
| | | public class Call |
| | | { |
| | | /// <summary> |
| | | ///记录主键Id |
| | | /// </summary> |
| | | public string id = string.Empty; |
| | | /// <summary> |
| | | /// 住宅id |
| | | /// </summary> |
| | | public string homeId = string.Empty; |
| | | /// <summary> |
| | | /// 呼叫时间 |
| | | /// </summary> |
| | | public string callTime = string.Empty; |
| | | /// <summary> |
| | | /// 通话时长 |
| | | /// </summary> |
| | | public string callDuration = string.Empty; |
| | | /// <summary> |
| | | /// 呼叫状态(0:未接;1:已接;2:拒接) |
| | | /// </summary> |
| | | public string callStatus = string.Empty; |
| | | /// <summary> |
| | | /// 是否开锁 |
| | | /// </summary> |
| | | public bool isUnlock; |
| | | /// <summary> |
| | | /// 截图地址 |
| | | /// </summary> |
| | | public string screenshotUrl = string.Empty; |
| | | /// <summary> |
| | | ///丰林绑定主键id(门口机主键Id) |
| | | /// </summary> |
| | | public string flBindId = string.Empty; |
| | | } |
| | | [Serializable] |
| | | public class CallView |
| | | { |
| | | /// <summary> |
| | | ///年 |
| | | /// </summary> |
| | | public string year = string.Empty; |
| | | |
| | | public List<Call> callList = new List<Call>(); |
| | | |
| | | } |
| | | [Serializable] |
| | | public class FlVideo |
| | | { |
| | | /// <summary> |
| | | /// 设备名称 |
| | | /// </summary> |
| | | public string aliasName = string.Empty; |
| | | /// <summary> |
| | | /// 设备类型:(1室内机,2室外机,3围墙机,4管理机,5二次确认机)
|
| | | /// </summary> |
| | | public string devType = string.Empty; |
| | | public string uuid = string.Empty; |
| | | } |
| | | |
| | | } |
| | | } |