mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 00:02:54 +00:00 
			
		
		
		
	Move Message class to separate file
This commit is contained in:
		@@ -2,11 +2,7 @@ import { Component, OnInit } from '@angular/core';
 | 
				
			|||||||
import { MarkdownService } from '../markdown.service';
 | 
					import { MarkdownService } from '../markdown.service';
 | 
				
			||||||
import { WebSocketService } from '../websocket.service';
 | 
					import { WebSocketService } from '../websocket.service';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class Message {
 | 
					import { Message } from './message';
 | 
				
			||||||
  originator: string;
 | 
					 | 
				
			||||||
  timestamp: Date;
 | 
					 | 
				
			||||||
  message: string;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
@Component({
 | 
					@Component({
 | 
				
			||||||
  selector: 'app-logs',
 | 
					  selector: 'app-logs',
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										5
									
								
								src/app/logs/message.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								src/app/logs/message.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
				
			|||||||
 | 
					export class Message {
 | 
				
			||||||
 | 
					  originator: string;
 | 
				
			||||||
 | 
					  timestamp: Date;
 | 
				
			||||||
 | 
					  message: string;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user