Files
UnrealEngineUWP/Engine/Source/Developer/FriendsAndChat/Private/Models/ChatItemViewModel.h
Josh Markiewicz d59491e91b [AUTOMERGE]
#UE4 - const FUniqueNetId / FOnlinePartyId changes

--------
Integrated using branch Ue4-To-UE4-Fortnite-Simple (reversed) of change#2538253 by Josh.Markiewicz on 2015/05/05 17:39:19.

[CL 2540329 by Josh Markiewicz in Main branch]
2015-05-06 19:56:02 -04:00

39 lines
1.2 KiB
C++

// Copyright 1998-2015 Epic Games, Inc. All Rights Reserved.
#pragma once
struct FFriendChatMessage;
class FChatViewModel;
class FChatItemViewModel
: public TSharedFromThis<FChatItemViewModel>
{
public:
virtual ~FChatItemViewModel() {}
virtual FText GetMessage() const = 0;
virtual const EChatMessageType::Type GetMessageType() const =0;
virtual FText GetMessageTimeText() const = 0;
virtual FDateTime GetMessageTime() const = 0;
virtual void AddMessage(const TSharedRef<FFriendChatMessage>& ChatMessage) = 0;
virtual FText GetSenderName() const = 0;
virtual const TSharedPtr<const FUniqueNetId> GetSenderID() const = 0;
virtual FText GetRecipientName() const = 0;
virtual const TSharedPtr<const FUniqueNetId> GetRecipientID() const = 0;
virtual const bool IsFromSelf() const = 0;
DECLARE_EVENT_OneParam(FChatItemViewModel, FChangedEvent, const TSharedRef<FChatItemViewModel>&)
virtual FChangedEvent& OnChanged() = 0;
};
/**
* Creates the implementation for an ChatItemViewModel.
*
* @return the newly created ChatItemViewModel implementation.
*/
FACTORY(TSharedRef< FChatItemViewModel >, FChatItemViewModel,
const TSharedRef<FFriendChatMessage>& FFriendChatMessage);