场景:
我正在尝试在Android应用中使用[Fact]
public void TestMethod1()
{
var objectList = new ReactiveList<IMyObject>(
initialContents: new[] { new MyObject(), new MyObject() },
resetChangeThreshold: 0.3,
scheduler: ImmediateScheduler.Instance);
objectList.ChangeTrackingEnabled = true;
IMyViewModel myViewModel = new MyViewModel
{
ObjectList = objectList,
MyObject = new MyObject()
};
var canExecute = myViewModel.Save
.CanExecute
.CreateCollection(scheduler: ImmediateScheduler.Instance);
Assert.Equal(1, canExecute.Count);
Assert.False(canExecute[0]);
myViewModel.ObjectList[0].Active = true;
Assert.Equal(2, canExecute.Count);
Assert.True(canExecute[1]);
myViewModel.MyObject.Active = true;
Assert.Equal(2, canExecute.Count);
myViewModel.IsBusy = true;
Assert.Equal(3, canExecute.Count);
Assert.False(canExecute[2]);
myViewModel.IsBusy = false;
Assert.Equal(4, canExecute.Count);
Assert.True(canExecute[3]);
myViewModel.MyObject.Active = false;
Assert.Equal(4, canExecute.Count);
var object1 = new MyObject { Active = true };
var object2 = new MyObject { Active = true };
myViewModel.ObjectList = new ReactiveList<IMyObject>(
initialContents: new[] { object1, object2 },
resetChangeThreshold: 0.3,
scheduler: ImmediateScheduler.Instance);
Assert.Equal(4, canExecute.Count);
object1 = new MyObject { Active = false };
object2 = new MyObject { Active = false };
myViewModel.ObjectList = new ReactiveList<IMyObject>(
initialContents: new[] { object1, object2 },
resetChangeThreshold: 0.3,
scheduler: ImmediateScheduler.Instance);
Assert.Equal(5, canExecute.Count);
Assert.False(canExecute[4]);
}
来登录GOOGLE SIGN IN
,我的基本需求是在Firebase Google Login
登录应用时检索USER
的性别。< / p>
问题:
即使我获得了USER
的性别,但又不是全部 USERS
,所以问题出在哪里,因为仅获得一些用户的性别就很奇怪了,所以我的问题是为什么我登录时没有得到所有用户的性别?
USERS
答案 0 :(得分:1)
问题是gender
应该由用户在其Google +
帐户上明确共享。我建议您自己尝试。
resourceName
= people/me
和personFields
= genders
resourceName
和etag
字段会得到响应。 TL; DR:G +上有Gender
个可见性设置,用户可能选择不共享其性别,并且在身份验证期间没有专用的配置文件范围可请求。此设置是竞争性私有。