Windows Phone 7 C#设备和用户信息

Windows Phone 7 C# Device and User Info
2021-03-07
  •  译文(汉语)
  •  原文(英语)

最近,我在考虑一种在应用程序内确认用户信息的方法.

是输入的电子邮件,设备的Windows Phone Live ID吗?

是设备的键入号码,Windows电话卡号吗?

到目前为止,我所知道的只是可以从Windows Phone SDK获得一些信息.

对于DeviceId(哈希),我根据设备序列使用DeviceEctendedProperties

对于UserId(哈希),我根据用户的实时ID使用UserExtendedProperties

这样我们就可以识别用户和设备.

要从用户那里获取正确的信息,例如电子邮件和电话号码,您必须询问他.那么问题来了:有什么方法可以验证用户输入?

例如:

App -> Form - > form_info(email, phone) -> Validate(form_info) -> Success OR Unsuccess

对于Validate(),我在想类似的东西:

form_info -> function_hasher() -> form_info_hash -> IF form_info_hash MATCHES with UserId (hash) and UserPhone (hash)

如果有UserPhone哈希来匹配卡号!

解决过程1

我非常确定没有办法获取此数据,甚至无法验证它是否正确,除非要求用户通过电子邮件/ SMS发送特定的地址/电话号码.如果您想走那条路线,可以使用SmsComposeTaskEmailComposeTask.

Recently I was thinking of a way to confirm the user info inside an app.

Is the typed email, the windows phone live-id of the device?

Is the typed number, the windows phone card-number of the device?

All I know until now is that I can get some info from windows phone SDK.

For DeviceId (hash) I use DeviceEctendedProperties, based on device serial i suppose

For UserId (hash) I use UserExtendedProperties, based on user live id i suppose

And with that we can identify a user and a device.

To get the right info from user like email and phone number you must ask him. So the question: Is there any way to validate the user entry?

For example:

App -> Form - > form_info(email, phone) -> Validate(form_info) -> Success OR Unsuccess

For Validate() i was thinking of something like:

form_info -> function_hasher() -> form_info_hash -> IF form_info_hash MATCHES with UserId (hash) and UserPhone (hash)

If there is a UserPhone hash to match the number of card!

Solutions1

I'm pretty sure there's no way to get this data or even verify that it's right, short of asking the user to email/SMS a particular address/phone number. If you want to go that route you can use a SmsComposeTask or an EmailComposeTask.

转载于:https://stackoverflow.com/questions/23053744/windows-phone-7-c-sharp-device-and-user-info

本人是.net程序员,因为英语不行,使用工具翻译,希望对有需要的人有所帮助
如果本文质量不好,还请谅解,毕竟这些操作还是比较费时的,英语较好的可以看原文

留言回复
我们只提供高质量资源,素材,源码,坚持 下了就能用 原则,让客户花了钱觉得值
上班时间 : 周一至周五9:00-17:30 期待您的加入