admin管理员组文章数量:1313265
I wrote the code below to handle when users react to an SMS we sent. However, if an IOS user has their language settings set to anything other than English it will send different reaction text. I.e. Le gustó instead of Liked. Can someone provide the other phrases that I have to look for form non-English users?
if ((smsBody.StartsWith("LIKE “")
|| smsBody.StartsWith("LIKED “")
|| smsBody.StartsWith("LOVED “")
|| smsBody.StartsWith("DISLIKED “")
|| smsBody.StartsWith("LAUGHED AT “")
|| smsBody.StartsWith("EMPHASIZED “")
|| smsBody.StartsWith("QUESTIONED “")
|| smsBody.StartsWith("REMOVED A HEART FROM “")
|| smsBody.StartsWith("REMOVED A QUESTION FROM “")
|| smsBody.StartsWith("REMOVED A EXCLAMATION FROM “")
|| smsBody.StartsWith("REMOVED A LAUGH FROM “")
|| smsBody.StartsWith("REMOVED A LIKE FROM “")
|| smsBody.StartsWith("REMOVED A DISLIKE FROM “")
) && sms.Body.EndsWith("”") || (Regex.IsMatch(smsBody, $"{EmojiPattern}\\s+to\\s+“.*?”") && Regex.IsMatch(smsBody, $"^{EmojiPattern}")))
本文标签: netSMS emoji reactionsStack Overflow
版权声明:本文标题:.net - SMS emoji reactions - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741943324a2406270.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论