Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn RequestBroker::RetrieveAvatar into a request derived from Download
Also add http namespace because classes clashed a lot.
- Loading branch information
Showing
19 changed files
with
203 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#include "AvatarRequest.h" | ||
#include "Config.h" | ||
|
||
namespace http | ||
{ | ||
AvatarRequest::AvatarRequest(ByteString username, int width, int height) : | ||
ImageRequest(ByteString::Build("http://" STATICSERVER "/avatars/", username, ".pti"), width, height) | ||
{ | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef AVATARREQUEST2_H | ||
#define AVATARREQUEST2_H | ||
|
||
#include "ImageRequest.h" | ||
#include "common/String.h" | ||
|
||
#include <memory> | ||
|
||
namespace http | ||
{ | ||
class AvatarRequest : public ImageRequest | ||
{ | ||
public: | ||
AvatarRequest(ByteString username, int width, int height); | ||
}; | ||
} | ||
|
||
#endif // AVATARREQUEST2_H | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.