合并多部分消息 [英] Merge Multipart Message

查看:123
本文介绍了合并多部分消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我已经开发了通过华为调制解调器发送和接收SMS的应用程序,如果我收到160个字符的消息,但如果我收到的字符超过160个字符,则它的工作正常,那么我们如何将这两个或三个多部分SMS合并为一个,以便用户可以一次拥有全部数据,一部分而不是全部.

请尽快回复

在此先感谢...

Hello everyone,

I have developed application to send and receive SMS thru huawei modem, its working fine if i receive message of 160 character but if i receive more then 160 character SMS then how can we merge those two or three multipart SMS in to one so that user can have full data at once not in part.

Plz reply ASAP

Thanks in Advance...

推荐答案

亲爱的Axay,

我们没有魔力球,如果您不提供任何代码或示例,我们将如何为您提供帮助?我们是否应该尝试猜测您的代码如何工作?或者您不知道如何从多个字符串创建一个字符串???

如果这是您要实现的目标,请参见以下示例:

Dear Axay,

We do not have a magic ball, how can we help you if you do not supply any code or example? Should we try to guess how your code is working? Or you do not know how to create a string from multiple strings???

If that is what you are trying to achieve here is a sample:

String.Join(String.Empty, messagesArray);



这不是最高效的方法,但它会起作用.


干杯



It is not the most performant way but it will work.


Cheers


这篇关于合并多部分消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆