【问题标题】:How to return as objects from firebase using firesharp如何使用firesharp从firebase作为对象返回
【发布时间】:2018-07-29 09:53:37
【问题描述】:

为此,我想将所有车辆作为车辆对象列表

FirebaseResponse response = await client.GetAsync("Vehicles/");
List<Data> vehicles = response.ResultAs<List<Data>>().ToList();

这会产生 JSON 序列化异常。 数据类如下:

internal class Data
{
    public string tag { get; set; }
    public string vehicleNo { get; set; }
}

【问题讨论】:

    标签: c# firebase firebase-realtime-database fire-sharp


    【解决方案1】:

    查看解决方案here

    var mList= JsonConvert.DeserializeObject<IDictionary<string, Match>>(jsonstr);
    

    【讨论】:

      猜你喜欢
      • 2021-11-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-11
      • 1970-01-01
      • 2018-04-02
      • 2018-11-14
      相关资源
      最近更新 更多