Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide functions/callbacks for offline/historical friend message requests #193

Merged
merged 3 commits into from
Nov 13, 2015

Conversation

CruelCow
Copy link

@CruelCow CruelCow commented Nov 1, 2015

No description provided.

/// Offline messages are marked by having set
/// <see cref="CMsgClientFSGetFriendMessageHistoryResponse.FriendMessage.unread"/> to true
/// </summary>
public List<CMsgClientFSGetFriendMessageHistoryResponse.FriendMessage> Messages { get; private set; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We'd want to wrap this into an inner class, check out how the SteamApps callbacks do this.

@voided
Copy link
Member

voided commented Nov 1, 2015

Do you know offhand if these messages support JobIDs? If so, we'd want to expose that.

@CruelCow
Copy link
Author

CruelCow commented Nov 1, 2015

I tried (in the same way ignoreFriend does it), but the returned JobIDs in the response always were different. Might just be my inexperience with the system though

@voided
Copy link
Member

voided commented Nov 10, 2015

@CruelCow any plans to finish up this PR with my comment regarding wrapping FriendMessages? If not we could always do it on our side.

@CruelCow
Copy link
Author

@voided Yeah, I have just been busy. Should be ready by tomorrow

@codecov-io
Copy link

Current coverage is 17.77%

Branch #193 has no coverage reports uploaded yet.

No diff could be generated. No reports for master found.

Powered by Codecov. Updated on successful CI builds.

public bool Unread { get; private set; }

/// <summary>
/// The actualy message
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo

@voided
Copy link
Member

voided commented Nov 12, 2015

Looks good other than a few nits.


internal FriendMessage( CMsgClientFSGetFriendMessageHistoryResponse.FriendMessage msg )
{
SteamID = new SteamID(msg.accountid);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is accountid, shouldn't it be constructed with universe and other bits of information?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. I think this also won't construct correctly (it will call the ulong constructor). Valve's code has a similar problem, but they've got a private uint constructor to prevent calling the ulong one accidentally.

voided added a commit that referenced this pull request Nov 13, 2015
Provide functions/callbacks for offline/historical friend message requests
@voided voided merged commit ea27051 into SteamRE:master Nov 13, 2015
@voided
Copy link
Member

voided commented Nov 13, 2015

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants