From 6c70a72d6f3d11baa65be466d4023b2f2ca79e39 Mon Sep 17 00:00:00 2001
From: lss <316519258@qq.com>
Date: 星期三, 03 六月 2020 11:04:41 +0800
Subject: [PATCH] 2020.06.03.1
---
ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs | 1
ZigbeeApp/.vs/GateWay/xs/.DS_Store | 0
ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml | 18 +----
ZigbeeApp/Shared/Phone/UserCenter/SmartSound/SmartSoundInfo.cs | 45 +++++++++++++++
.DS_Store | 0
ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundListForm.cs | 116 ++++++++++++++++++++++++++++++++++++++
6 files changed, 165 insertions(+), 15 deletions(-)
diff --git a/.DS_Store b/.DS_Store
index 094ada7..990f2f5 100644
--- a/.DS_Store
+++ b/.DS_Store
Binary files differ
diff --git a/ZigbeeApp/.vs/GateWay/xs/.DS_Store b/ZigbeeApp/.vs/GateWay/xs/.DS_Store
new file mode 100644
index 0000000..f8d277d
--- /dev/null
+++ b/ZigbeeApp/.vs/GateWay/xs/.DS_Store
Binary files differ
diff --git a/ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml b/ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml
index 9400d3c..a8068f6 100644
--- a/ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml
+++ b/ZigbeeApp/.vs/GateWay/xs/UserPrefs.xml
@@ -1,16 +1,13 @@
锘�<Properties StartupConfiguration="{28EDE1FF-20EF-476B-8AF8-24A3EEB69F45}|Default">
- <MonoDevelop.Ide.ItemProperties.GateWay.Droid PreferredExecutionTarget="Android.SelectDevice" />
+ <MonoDevelop.Ide.ItemProperties.GateWay.Droid PreferredExecutionTarget="Android.2400788643044815020f" />
<MonoDevelop.Ide.ItemProperties.GateWay.Ios PreferredExecutionTarget="MonoDevelop.IPhone.IPhoneSimulatorTarget.0F3EFA59-22A1-4A3A-A991-0B8D4D01A5D5" />
<MonoDevelop.Ide.ItemProperties.ShardLib PreferredExecutionTarget="Android.M7BBB18B19152766" />
- <MonoDevelop.Ide.Workbench ActiveDocument="Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundContentForDeviceChange.cs">
- <Files>
- <File FileName="Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundContentForDeviceChange.cs" Line="200" Column="18" />
- </Files>
+ <MonoDevelop.Ide.Workbench>
<Pads>
<Pad Id="ProjectPad">
<State name="__root__">
<Node name="GateWay" expanded="True">
- <Node name="GateWay.Droid" expanded="True" />
+ <Node name="GateWay.Droid" expanded="True" selected="True" />
<Node name="Shared" expanded="True">
<Node name="Phone" expanded="True">
<Node name="CommonForm" expanded="True" />
@@ -35,9 +32,7 @@
</Node>
<Node name="OtherParty" expanded="True" />
<Node name="SmartSound" expanded="True">
- <Node name="Forms" expanded="True">
- <Node name="SmartSoundContentForDeviceChange.cs" selected="True" />
- </Node>
+ <Node name="Forms" expanded="True" />
<Node name="Widget" expanded="True" />
</Node>
<Node name="UserMain" expanded="True" />
@@ -53,10 +48,7 @@
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug|iPhone" />
<MonoDevelop.Ide.DebuggingService.Breakpoints>
- <BreakpointStore>
- <Breakpoint file="/Users/hdl/Desktop/HDL/HomeApp/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundContentForDeviceChange.cs" relfile="Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundContentForDeviceChange.cs" line="256" column="1" />
- <Breakpoint file="/Users/hdl/Desktop/HDL/HomeApp/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundContentForDeviceChange.cs" relfile="Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundContentForDeviceChange.cs" line="323" column="1" />
- </BreakpointStore>
+ <BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MultiItemStartupConfigurations />
</Properties>
\ No newline at end of file
diff --git a/ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs b/ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs
index 0b84d58..447e1cb 100644
--- a/ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs
+++ b/ZigbeeApp/GateWay.Droid/Resources/Resource.designer.cs
@@ -2,7 +2,6 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundListForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundListForm.cs
index 72703b8..6c897e3 100644
--- a/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundListForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/Forms/SmartSoundListForm.cs
@@ -1,8 +1,13 @@
锘縰sing System;
using System.Collections.Generic;
+<<<<<<< HEAD
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json.Linq;
+=======
+using System.Diagnostics;
+using System.Threading.Tasks;
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
using Shared.Common;
using Shared.Phone.UserCenter.Device;
using Shared.Phone.UserCenter.SmartSound.Util;
@@ -17,6 +22,10 @@
{
}
+<<<<<<< HEAD
+=======
+ //private List<SmartSoundInfo> smartSoundList = null;
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
private SmartSoundInfo smartSoundInfo = null;
/// <summary>
@@ -40,9 +49,22 @@
{
// iniData();//鍏堝姞杞芥ā鎷熸暟鎹�
+<<<<<<< HEAD
this.ScrollEnabled = false;
//璁剧疆鏍囬淇℃伅
+=======
+ /// <summary>
+ /// 鐢婚潰鏄剧ず(搴曞眰浼氬浐瀹氳皟鐢ㄦ鏂规硶锛屽�熶互瀹屾垚鐢婚潰鍒涘缓)
+ /// </summary>
+ public void ShowForm()
+ {
+ // iniData();//鍏堝姞杞芥ā鎷熸暟鎹�
+
+ this.ScrollEnabled = false;
+
+ //璁剧疆鏍囬淇℃伅
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
base.SetTitleText("鏅鸿兘闊崇");
Dictionary<string, string> floorDictionary = Config.Instance.Home.FloorDics;//妤煎眰鍒楄〃
@@ -60,6 +82,7 @@
this.InitMiddleFrame();
helpBtn.MouseUpEventHandler += (sernder, e) =>
+<<<<<<< HEAD
{
//杩欓噷鏄姞杞藉府缁勭殑鐣岄潰
};
@@ -70,10 +93,25 @@
/// </summary>
/// <param name="i_reGetDeviceOnlineStatu">閲嶆柊鑾峰彇璁惧鐨勫湪绾跨姸鎬�</param>
public async void InitMiddleFrame()
+=======
+ {
+ //杩欓噷鏄姞杞藉府缁勭殑鐣岄潰
+ };
+
+
+
+ }
+
+ /// <summary>
+ /// 鍒濆鍖栦腑閮ㄦ帶浠�(澶栭儴鍙互璋冪敤)
+ /// </summary>
+ /// <param name="i_reGetDeviceOnlineStatu">閲嶆柊鑾峰彇璁惧鐨勫湪绾跨姸鎬�</param>
+ public async void InitMiddleFrame()
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
{
// show鍑烘病鏈夎澶囩殑鍥炬爣鏂囧瓧鎻愮ず
this.ShowNotDataImage(bodyFrameLayout, new string[] { "杩樻病鏈夐煶绠卞摝锛�", "缁戝畾鏅鸿兘闊崇璇峰墠寰�绗笁鏂� APP 杩涜鎿嶄綔" });
-
+
var frame = new FrameLayout();
this.bodyFrameLayout.AddChidren(frame);
frame.BackgroundColor = UserCenterColor.Current.White;
@@ -81,6 +119,7 @@
frame.Height = this.bodyFrameLayout.Height;
// 鍒濆鍖� lisetView
+<<<<<<< HEAD
listView = new VerticalListRefreshControl(29);
listView.Y = 0;
listView.Height = bodyFrameLayout.Height;
@@ -91,6 +130,18 @@
{
await getData();
//涓嬫媺鍒锋柊
+=======
+ listView = new VerticalListRefreshControl(29);
+ listView.Y = 0;
+ listView.Height = bodyFrameLayout.Height;
+ frame.AddChidren(listView);
+ listView.BeginHeaderRefreshingAction += () =>
+ {
+ HdlThreadLogic.Current.RunThread(async () =>
+ {
+ await getData();
+ //涓嬫媺鍒锋柊
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
iniView();
HdlThreadLogic.Current.RunMain(() =>
@@ -106,6 +157,7 @@
await getData();
+<<<<<<< HEAD
this.CloseProgressBar(ShowReLoadMode.NO);
iniView();
@@ -115,12 +167,19 @@
/// 鑾峰彇闊崇鍒楄〃
/// </summary>
/// <returns></returns>
+=======
+ this.CloseProgressBar( ShowReLoadMode.YES);
+ iniView();
+ }
+
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
private async Task getData()
{
SmartSoundInfo.Auth auth = new SmartSoundInfo.Auth();
auth.HomeID = Common.Config.Instance.Home.Id;
auth.UserID = Common.Config.Instance.Guid;
auth.Platform = "";
+<<<<<<< HEAD
string url = string.Format("https://developer.hdlcontrol.com/zigbeespeakerservice/Auth?Platform&PageSetting.PageSize=100&PageSetting.PageIndex=1&UserID={0}&HomeID={1}",
Common.Config.Instance.Guid,Common.Config.Instance.Home.Id);
byte[] byteData = Encoding.UTF8.GetBytes(Newtonsoft.Json.JsonConvert.SerializeObject(auth));
@@ -176,6 +235,29 @@
listView.AddChidren(row);
if (smartSound.Platform == "Baidu")
+=======
+
+ dataString = await UserCenterLogic.GetResponseDataByRequestHttps("zigbeespeakerservice/Auth", true, auth);
+ smartSoundInfo = (SmartSoundInfo)Newtonsoft.Json.JsonConvert.DeserializeObject(dataString);
+ }
+
+ private void iniView()
+ {
+ //
+ listView.RemoveAll();
+
+ if (smartSoundInfo==null)
+ return;
+
+ for (int i = 0; i < smartSoundInfo.ResponseData.Data.Count; i++)
+ {
+ //
+ var smartSound = smartSoundInfo.ResponseData.Data[i];
+ var row = new SoundRowLayout();
+ listView.AddChidren(row);
+
+ if (smartSound.Platform == "Xiaodu")
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
{
row.Account = "灏忓害锛�" + smartSound.UserName;
row.ImagePath = "SmartSound/Xiaodu.png";
@@ -190,7 +272,11 @@
row.btnRename.ButtonClickEvent += (sender, e) =>
{
//
+<<<<<<< HEAD
int index = (int)(((NormalViewControl)sender).GetTagByKey("index"));
+=======
+ int index = (int)(((NormalViewControl)sender).GetTagByKey("index"));
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
var smartSound = smartSoundInfo.ResponseData.Data[index];
ShowRenameDialog(row, smartSound);
@@ -240,6 +326,7 @@
//璇疯緭鍏ュ浠藉悕绉�
dialogForm.SetTipText(smartSound.Remark);
+<<<<<<< HEAD
//鎸変笅纭鎸夐挳
dialogForm.ComfirmClickEvent += (async (textValue) =>
{
@@ -261,6 +348,33 @@
}
});
}
+=======
+ /// <summary>
+ /// 閲嶅懡鍚嶅脊绐�
+ /// </summary>
+ /// <returns></returns>
+ private void ShowRenameDialog(SoundRowLayout soundRowLayout, SmartSoundInfo.SoundInfo smartSound)
+ {
+ //鐢熸垚涓�涓脊绐楃敾闈�
+ var dialogForm = new DialogInputControl();
+ //娣诲姞澶囦唤
+ dialogForm.SetTitleText("閲嶅懡鍚�");
+ //璇疯緭鍏ュ浠藉悕绉�
+ dialogForm.SetTipText(smartSound.Remark);
+
+ //鎸変笅纭鎸夐挳
+ dialogForm.ComfirmClickEvent += ((textValue) =>
+ {
+
+ //鐢婚潰鍏抽棴
+ dialogForm.CloseDialog();
+
+ //涓婁紶澶囦唤
+ smartSound.Remark = textValue;
+ soundRowLayout.btnRemark.Text= textValue;
+ });
+ }
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
#endregion
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/SmartSoundInfo.cs b/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/SmartSoundInfo.cs
index 844cbbe..01b4b40 100644
--- a/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/SmartSoundInfo.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/SmartSound/SmartSoundInfo.cs
@@ -13,6 +13,7 @@
{
}
+<<<<<<< HEAD
public string StateCode { get; set; }
public string ErrorInfo { get; set; }
public Info ResponseData { get; set; }
@@ -24,10 +25,24 @@
public int RowCount { get; set; }
public int PageTotal { get; set; }
public List<SoundInfo> Data { get; set; }
+=======
+ public string StateCode = "";
+ public string ErrorInfo = "";
+ public Info ResponseData = new Info();
+
+ public class Info
+ {
+ public int PageSize = 0;
+ public int PageIndex = 0;
+ public int RowCount = 0;
+ public int PageTotal = 0;
+ public List<SoundInfo> Data = new List<SoundInfo>();
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
}
public class SoundInfo
{
+<<<<<<< HEAD
public string UserID { get; set; }
public string AuthCode { get; set; }
public string Token { get; set; }
@@ -49,13 +64,43 @@
/// 鏅鸿兘闊崇鐨勭敤鎴峰悕锛堝皬搴︼細123456@qq.com锛�
/// </summary>
public string UserName { get; set; } = "123456@qq.com";
+=======
+
+ public string UserID = "";
+ public string AuthCode = "";
+ public string Token = "";
+ public string RefreshToken = "";
+ /// <summary>
+ /// Baidu
+ /// </summary>
+ public string Platform = "Baidu";
+ public string HomeID = "";
+ public string OpenUID = "";
+ /// <summary>
+ /// 鏅鸿兘闊崇澶囨敞
+ /// </summary>
+ public string Remark = "";
+ public string Id = "";
+ public bool IsDeleted = false;
+ public string CreatedOnUtc = "";
+ /// <summary>
+ /// 鏅鸿兘闊崇鐨勭敤鎴峰悕锛堝皬搴︼細123456@qq.com锛�
+ /// </summary>
+ public string UserName;
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
}
public class Auth
{
+<<<<<<< HEAD
public string Platform { get; set; }
public string UserID { get; set; }
public string HomeID { get; set; }
+=======
+ public string Platform = "";
+ public string UserID = "";
+ public string HomeID = "";
+>>>>>>> b5b3f2bf5b04de190acea40790537b9e96649188
public PageSetting PageSetting { get; set; }
public Auth()
--
Gitblit v1.8.0